Bug 1286445: Stub out HasStateDependentStyle. r=heycam
MozReview-Commit-ID: CbHfVNHFVS3
--- 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());