Bug 1286445: Stub out HasStateDependentStyle. r=heycam draft
authorEmilio Cobos Álvarez <ecoal95@gmail.com>
Wed, 13 Jul 2016 14:37:56 -0700
changeset 388418 780c3eca880f911ab46bc573e5addcfe2936169a
parent 388417 9c38e26a45cb525c64ed8faa3c2adf0bb5387e9e
child 388419 d73d6b3baa8547cde259afc5d991b09e6e192629
push id23164
push userbmo:ealvarez@mozilla.com
push dateFri, 15 Jul 2016 18:56:00 +0000
reviewersheycam
bugs1286445
milestone50.0a1
Bug 1286445: Stub out HasStateDependentStyle. r=heycam MozReview-Commit-ID: CbHfVNHFVS3
layout/style/ServoStyleSet.cpp
--- a/layout/style/ServoStyleSet.cpp
+++ b/layout/style/ServoStyleSet.cpp
@@ -362,26 +362,28 @@ ServoStyleSet::ProbePseudoElementStyle(E
   }
   return ProbePseudoElementStyle(aParentElement, aType, aParentContext);
 }
 
 nsRestyleHint
 ServoStyleSet::HasStateDependentStyle(dom::Element* aElement,
                                       EventStates aStateMask)
 {
-  MOZ_CRASH("stylo: not implemented");
+  NS_ERROR("stylo: HasStateDependentStyle not implemented");
+  return nsRestyleHint(0);
 }
 
 nsRestyleHint
 ServoStyleSet::HasStateDependentStyle(dom::Element* aElement,
                                       CSSPseudoElementType aPseudoType,
                                      dom::Element* aPseudoElement,
                                      EventStates aStateMask)
 {
-  MOZ_CRASH("stylo: not implemented");
+  NS_ERROR("stylo: HasStateDependentStyle not implemented");
+  return nsRestyleHint(0);
 }
 
 void
 ServoStyleSet::RestyleSubtree(nsINode* aNode, bool aForce)
 {
   if (aForce) {
     MOZ_ASSERT(aNode->IsContent());
     ServoRestyleManager::DirtyTree(aNode->AsContent());