mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 559491. If a visited style context has no parent then add it to the list of roots. r=dbaron
This commit is contained in:
parent
163f081451
commit
19b8662309
@ -589,9 +589,6 @@ nsStyleContext::CalcStyleDifference(nsStyleContext* aOther)
|
||||
void
|
||||
nsStyleContext::Mark()
|
||||
{
|
||||
if (mStyleIfVisited)
|
||||
mStyleIfVisited->Mark();
|
||||
|
||||
// Mark our rule node.
|
||||
mRuleNode->Mark();
|
||||
|
||||
|
@ -500,6 +500,9 @@ nsStyleSet::GetContext(nsStyleContext* aParentContext,
|
||||
if (!resultIfVisited) {
|
||||
return nsnull;
|
||||
}
|
||||
if (!parentIfVisited) {
|
||||
mRoots.AppendElement(resultIfVisited);
|
||||
}
|
||||
resultIfVisited->SetIsStyleIfVisited();
|
||||
result->SetStyleIfVisited(resultIfVisited.forget());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user