From: L. David Baron Bug 572200, part 2: Allow rule nodes to cache data owned by an ancestor rule node: don't destroy structs that we don't own. diff --git a/layout/style/nsRuleNode.cpp b/layout/style/nsRuleNode.cpp --- a/layout/style/nsRuleNode.cpp +++ b/layout/style/nsRuleNode.cpp @@ -1325,17 +1325,17 @@ nsRuleNode::nsRuleNode(nsPresContext* aC mParent->GetLevel() != nsStyleSet::eAnimationSheet, "must be only one rule at animation level"); } nsRuleNode::~nsRuleNode() { MOZ_COUNT_DTOR(nsRuleNode); if (mStyleData.mResetData || mStyleData.mInheritedData) - mStyleData.Destroy(0, mPresContext); + mStyleData.Destroy(mDependentBits, mPresContext); NS_IF_RELEASE(mRule); } nsRuleNode* nsRuleNode::Transition(nsIStyleRule* aRule, uint8_t aLevel, bool aIsImportantRule) { nsRuleNode* next = nullptr;