Bug 508050. Make sure to reparent views when pulling overflows from our prevsibling. r=roc
authorBoris Zbarsky <bzbarsky@mit.edu>
Mon, 10 Aug 2009 10:54:22 -0400
changeset 31288 1ddf399b4c26f20a9434301ff7220bf984912db9
parent 31287 cf95f5eee70324c0ba8bc452b8d6bf34f14fccc7
child 31289 d48a9e2be777f7caf9fa00a33c5a0f1b1a264b34
push id8476
push userbzbarsky@mozilla.com
push dateMon, 10 Aug 2009 16:00:21 +0000
treeherdermozilla-central@1ddf399b4c26 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs508050
milestone1.9.2a2pre
Bug 508050. Make sure to reparent views when pulling overflows from our prevsibling. r=roc
layout/generic/nsInlineFrame.cpp
--- 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,