Bug 1348873 - Change ServoType to uint64_t instead of uint16_t in EventStates r=emilio
authorNazım Can Altınova <canaltinova@gmail.com>
Mon, 20 Mar 2017 18:54:54 +0300
changeset 348578 8583f86a7ac2cc9844bc91beae0515d996a0775e
parent 348577 3555ae48bb7f6d8454bd217d2550cf016b9783ed
child 348579 fad072f940ccdfb70bb1799bb256841070e0993c
push id39214
push userecoal95@gmail.com
push dateTue, 21 Mar 2017 10:19:52 +0000
treeherderautoland@8583f86a7ac2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersemilio
bugs1348873
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1348873 - Change ServoType to uint64_t instead of uint16_t in EventStates r=emilio MozReview-Commit-ID: GDP6XaL96ez
dom/events/EventStates.h
layout/style/ServoBindings.h
--- a/dom/events/EventStates.h
+++ b/dom/events/EventStates.h
@@ -20,17 +20,17 @@ namespace mozilla {
  * ContentStatesChanged() has to be called when one of them changes thus
  * informing the layout/style engine of the change.
  * Event states are associated with pseudo-classes.
  */
 class EventStates
 {
 public:
   typedef uint64_t InternalType;
-  typedef uint16_t ServoType;
+  typedef uint64_t ServoType;
 
   constexpr EventStates()
     : mStates(0)
   {
   }
 
   // NOTE: the ideal scenario would be to have the default constructor public
   // setting mStates to 0 and this constructor (without = 0) private.
--- a/layout/style/ServoBindings.h
+++ b/layout/style/ServoBindings.h
@@ -139,17 +139,17 @@ void Gecko_LoadStyleSheet(mozilla::css::
 // optional heap-allocated iterator for nodes that need it. If the creation
 // method returns null, Servo falls back to the aforementioned simpler (and
 // faster) sibling traversal.
 StyleChildrenIteratorOwnedOrNull Gecko_MaybeCreateStyleChildrenIterator(RawGeckoNodeBorrowed node);
 void Gecko_DropStyleChildrenIterator(StyleChildrenIteratorOwned it);
 RawGeckoNodeBorrowedOrNull Gecko_GetNextStyleChild(StyleChildrenIteratorBorrowedMut it);
 
 // Selector Matching.
-uint16_t Gecko_ElementState(RawGeckoElementBorrowed element);
+uint64_t Gecko_ElementState(RawGeckoElementBorrowed element);
 bool Gecko_IsLink(RawGeckoElementBorrowed element);
 bool Gecko_IsTextNode(RawGeckoNodeBorrowed node);
 bool Gecko_IsVisitedLink(RawGeckoElementBorrowed element);
 bool Gecko_IsUnvisitedLink(RawGeckoElementBorrowed element);
 bool Gecko_IsRootElement(RawGeckoElementBorrowed element);
 bool Gecko_MatchesElement(mozilla::CSSPseudoClassType type, RawGeckoElementBorrowed element);
 nsIAtom* Gecko_LocalName(RawGeckoElementBorrowed element);
 nsIAtom* Gecko_Namespace(RawGeckoElementBorrowed element);