Bug 1348873 - Change ServoType to uint64_t instead of uint16_t in EventStates r?emilio draft
authorNazım Can Altınova <canaltinova@gmail.com>
Mon, 20 Mar 2017 18:54:54 +0300
changeset 501634 0f5d4c9b0a03442dcd2a579a5bb2580b79c9e095
parent 501522 8d967436d696d1f8e3fb33cf7e3d32a72457ffa6
child 549950 78e988d4cb22b84c34aa7174e767596337156cb6
push id50060
push userbmo:canaltinova@gmail.com
push dateMon, 20 Mar 2017 18:22:36 +0000
reviewersemilio
bugs1348873
milestone55.0a1
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);