Bug 508050. Make sure to reparent views when pulling overflows from our prevsibling. r=roc
--- a/layout/generic/nsInlineFrame.cpp
+++ b/layout/generic/nsInlineFrame.cpp
@@ -404,16 +404,19 @@ nsInlineFrame::CanContinueTextRun() cons
/* virtual */ void
nsInlineFrame::PullOverflowsFromPrevInFlow()
{
nsInlineFrame* prevInFlow = static_cast<nsInlineFrame*>(GetPrevInFlow());
if (prevInFlow) {
nsAutoPtr<nsFrameList> prevOverflowFrames(prevInFlow->StealOverflowFrames());
if (prevOverflowFrames) {
// Assume that our prev-in-flow has the same line container that we do.
+ nsHTMLContainerFrame::ReparentFrameViewList(PresContext(),
+ *prevOverflowFrames,
+ prevInFlow, this);
mFrames.InsertFrames(this, nsnull, *prevOverflowFrames);
}
}
}
nsresult
nsInlineFrame::ReflowFrames(nsPresContext* aPresContext,
const nsHTMLReflowState& aReflowState,