Bug 822910. r=roc

This commit is contained in:
Mats Palmgren
2013-02-19 02:44:14 +01:00
parent d22b3ca82e
commit f3775ec7ad
2 changed files with 17 additions and 3 deletions

View File

@@ -10890,6 +10890,11 @@ nsCSSFrameConstructor::RemoveFloatingFirstLetterFrames(
// new primary frame.
textContent->SetPrimaryFrame(newTextFrame);
// Wallpaper bug 822910.
if (prevSibling && prevSibling->GetType() == nsGkAtoms::textFrame) {
prevSibling->AddStateBits(NS_FRAME_IS_DIRTY);
}
// Insert text frame in its place
nsFrameList textList(newTextFrame, newTextFrame);
InsertFrames(parentFrame, kPrincipalList, prevSibling, textList);
@@ -10939,6 +10944,11 @@ nsCSSFrameConstructor::RemoveFirstLetterFrames(nsPresContext* aPresContext,
// new primary frame.
textContent->SetPrimaryFrame(textFrame);
// Wallpaper bug 822910.
if (prevSibling && prevSibling->GetType() == nsGkAtoms::textFrame) {
prevSibling->AddStateBits(NS_FRAME_IS_DIRTY);
}
// Insert text frame in its place
nsFrameList textList(textFrame, textFrame);
InsertFrames(aFrame, kPrincipalList, prevSibling, textList);