Bug 1087536 patch 2 - Assert when nsStyleSet::RuleNodeWithReplacement finds the rules in an incorrect order. r=birtles

I confirmed that this assertion fires (along with the other failures)
when running layout/style/test/test_transitions_events.html with patch 3
but not patch 1.
This commit is contained in:
L. David Baron 2014-11-17 11:39:14 -08:00
parent 79ff09761b
commit 45e5ce14aa

View File

@ -1524,6 +1524,10 @@ nsStyleSet::RuleNodeWithReplacement(Element* aElement,
}
}
NS_ASSERTION(rulesIndex == 0,
"rules are in incorrect cascading order, "
"which means we replaced them incorrectly");
return ruleWalker.CurrentNode();
}