From 3991666744f3f0179d12e493bd8cda46f7553968 Mon Sep 17 00:00:00 2001 From: John Daggett Date: Tue, 8 Apr 2014 14:13:28 +0900 Subject: [PATCH] Bug 950526 - dirty frames after reparenting. r=dbaron --- layout/generic/nsFirstLetterFrame.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layout/generic/nsFirstLetterFrame.cpp b/layout/generic/nsFirstLetterFrame.cpp index c2a72ec3bcf..ab82391d95d 100644 --- a/layout/generic/nsFirstLetterFrame.cpp +++ b/layout/generic/nsFirstLetterFrame.cpp @@ -317,6 +317,7 @@ nsFirstLetterFrame::CreateContinuationForFloatingParent(nsPresContext* aPresCont nsRefPtr newSC; newSC = presShell->StyleSet()->ResolveStyleForNonElement(parentSC); continuation->SetStyleContext(newSC); + nsLayoutUtils::MarkDescendantsDirty(continuation); } //XXX Bidi may not be involved but we have to use the list name @@ -370,6 +371,7 @@ nsFirstLetterFrame::DrainOverflowFrames(nsPresContext* aPresContext) mStyleContext; sc = aPresContext->StyleSet()->ResolveStyleForNonElement(parentSC); kid->SetStyleContext(sc); + nsLayoutUtils::MarkDescendantsDirty(kid); } } }