diff --git a/layout/style/nsRuleNode.cpp b/layout/style/nsRuleNode.cpp index 2658c66d2a2a..06a6f306da1c 100644 --- a/layout/style/nsRuleNode.cpp +++ b/layout/style/nsRuleNode.cpp @@ -2616,6 +2616,9 @@ nsRuleNode::WalkRuleTree(const nsStyleStructID aSID, const void* parentStruct = parentContext->StyleData(aSID); aContext->AddStyleBit(bit); // makes const_cast OK. aContext->SetStyle(aSID, const_cast(parentStruct)); + if (isReset) { + parentContext->AddStyleBit(NS_STYLE_HAS_CHILD_THAT_USES_RESET_STYLE); + } return parentStruct; } else