mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 570866. De-bogify the assertion.
This commit is contained in:
parent
fad57cbfe8
commit
9c0d6be952
@ -628,16 +628,15 @@ VerifyContextParent(nsPresContext* aPresContext, nsIFrame* aFrame,
|
||||
|
||||
nsStyleContext* childStyleIfVisited = aContext->GetStyleIfVisited();
|
||||
// Since we have different rules for :link and :visited in our ua/user sheets,
|
||||
// we know that either childStyleIfVisited has a different rulenode than
|
||||
// aContext (in which case it has :visited rules applied and its parent must
|
||||
// be aContext->GetParent()), or it has the same rulenode and then its parent
|
||||
// must be aContext->GetParent()->GetStyleIfVisited().
|
||||
// we know that either childStyleIfVisited has
|
||||
// aContext->GetParent()->GetStyleIfVisited() as the parent or it has a
|
||||
// different rulenode from aContext _and_ has aContext->GetParent() as the
|
||||
// parent.
|
||||
if (childStyleIfVisited &&
|
||||
!((childStyleIfVisited->GetRuleNode() != aContext->GetRuleNode() &&
|
||||
childStyleIfVisited->GetParent() == aContext->GetParent()) ||
|
||||
(childStyleIfVisited->GetRuleNode() == aContext->GetRuleNode() &&
|
||||
childStyleIfVisited->GetParent() ==
|
||||
aContext->GetParent()->GetStyleIfVisited()))) {
|
||||
childStyleIfVisited->GetParent() ==
|
||||
aContext->GetParent()->GetStyleIfVisited())) {
|
||||
NS_ERROR("Visited style has wrong parent");
|
||||
DumpContext(aFrame, aContext);
|
||||
fputs("\n", stdout);
|
||||
|
Loading…
Reference in New Issue
Block a user