Bug 1383816 - Removes FocusTargetType ParamTraits specialization; r?botond draft
authorJeff Hajewski <jeff.hajewski@gmail.com>
Sun, 03 Sep 2017 08:11:59 -0500
changeset 661710 34970578a546b4adca1497ad92cb084bf562ef02
parent 661709 f4ff720f709a5e51a9f15fce2a2efbd641b741f8
child 730659 c310d9f206be35e8ed54c6be2d75244272e1e784
push id78858
push userjeff.hajewski@gmail.com
push dateFri, 08 Sep 2017 22:55:28 +0000
reviewersbotond
bugs1383816
milestone57.0a1
Bug 1383816 - Removes FocusTargetType ParamTraits specialization; r?botond MozReview-Commit-ID: Gao4O3eJKmp
gfx/layers/ipc/LayersMessageUtils.h
--- a/gfx/layers/ipc/LayersMessageUtils.h
+++ b/gfx/layers/ipc/LayersMessageUtils.h
@@ -435,24 +435,16 @@ struct ParamTraits<mozilla::layers::Focu
   static bool Read(const Message* aMsg, PickleIterator* aIter, paramType* aResult)
   {
     return ReadParam(aMsg, aIter, &aResult->mHorizontal) &&
            ReadParam(aMsg, aIter, &aResult->mVertical);
   }
 };
 
 template <>
-struct ParamTraits<mozilla::layers::FocusTarget::FocusTargetType>
-  : public ContiguousEnumSerializerInclusive<
-             mozilla::layers::FocusTarget::FocusTargetType,
-             mozilla::layers::FocusTarget::eNone,
-             mozilla::layers::FocusTarget::sHighestFocusTargetType>
-{};
-
-template <>
 struct ParamTraits<mozilla::layers::FocusTarget::NoFocusTarget>
   : public EmptyStructSerializer<mozilla::layers::FocusTarget::NoFocusTarget>
 {};
 
 template <>
 struct ParamTraits<mozilla::layers::FocusTarget>
 {
   typedef mozilla::layers::FocusTarget paramType;