mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 950526 - dirty frames after reparenting. r=dbaron
This commit is contained in:
parent
7aae0ded4c
commit
3991666744
@ -317,6 +317,7 @@ nsFirstLetterFrame::CreateContinuationForFloatingParent(nsPresContext* aPresCont
|
|||||||
nsRefPtr<nsStyleContext> newSC;
|
nsRefPtr<nsStyleContext> newSC;
|
||||||
newSC = presShell->StyleSet()->ResolveStyleForNonElement(parentSC);
|
newSC = presShell->StyleSet()->ResolveStyleForNonElement(parentSC);
|
||||||
continuation->SetStyleContext(newSC);
|
continuation->SetStyleContext(newSC);
|
||||||
|
nsLayoutUtils::MarkDescendantsDirty(continuation);
|
||||||
}
|
}
|
||||||
|
|
||||||
//XXX Bidi may not be involved but we have to use the list name
|
//XXX Bidi may not be involved but we have to use the list name
|
||||||
@ -370,6 +371,7 @@ nsFirstLetterFrame::DrainOverflowFrames(nsPresContext* aPresContext)
|
|||||||
mStyleContext;
|
mStyleContext;
|
||||||
sc = aPresContext->StyleSet()->ResolveStyleForNonElement(parentSC);
|
sc = aPresContext->StyleSet()->ResolveStyleForNonElement(parentSC);
|
||||||
kid->SetStyleContext(sc);
|
kid->SetStyleContext(sc);
|
||||||
|
nsLayoutUtils::MarkDescendantsDirty(kid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user