Bug 950526 - dirty frames after reparenting. r=dbaron

This commit is contained in:
John Daggett 2014-04-08 14:13:28 +09:00
parent 7aae0ded4c
commit 3991666744

View File

@ -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);
} }
} }
} }