From 3e7a93ab5fd173d692fe76083e49fada570d7635 Mon Sep 17 00:00:00 2001 From: Mats Palmgren Date: Fri, 3 Jan 2014 21:08:50 +0000 Subject: [PATCH] Bug 949294 - Mark the delegating frame as being IN_REFLOW while reflowing abs.pos. children. r=roc --- layout/generic/nsFrame.cpp | 2 ++ layout/xul/nsBoxFrame.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/layout/generic/nsFrame.cpp b/layout/generic/nsFrame.cpp index 658e2f67c807..2110550b8aef 100644 --- a/layout/generic/nsFrame.cpp +++ b/layout/generic/nsFrame.cpp @@ -7740,11 +7740,13 @@ nsFrame::DoLayout(nsBoxLayoutState& aState) nsSize(size.width, NS_UNCONSTRAINEDSIZE), nsHTMLReflowState::DUMMY_PARENT_REFLOW_STATE); + AddStateBits(NS_FRAME_IN_REFLOW); // Set up a |reflowStatus| to pass into ReflowAbsoluteFrames // (just a dummy value; hopefully that's OK) nsReflowStatus reflowStatus = NS_FRAME_COMPLETE; ReflowAbsoluteFrames(aState.PresContext(), desiredSize, reflowState, reflowStatus); + RemoveStateBits(NS_FRAME_IN_REFLOW); } nsSize oldSize(ourRect.Size()); diff --git a/layout/xul/nsBoxFrame.cpp b/layout/xul/nsBoxFrame.cpp index 9dd88acf5f30..5b0b99fe7d71 100644 --- a/layout/xul/nsBoxFrame.cpp +++ b/layout/xul/nsBoxFrame.cpp @@ -928,11 +928,13 @@ nsBoxFrame::DoLayout(nsBoxLayoutState& aState) desiredSize.SetTopAscent(ascent); desiredSize.mOverflowAreas = GetOverflowAreas(); + AddStateBits(NS_FRAME_IN_REFLOW); // Set up a |reflowStatus| to pass into ReflowAbsoluteFrames // (just a dummy value; hopefully that's OK) nsReflowStatus reflowStatus = NS_FRAME_COMPLETE; ReflowAbsoluteFrames(aState.PresContext(), desiredSize, reflowState, reflowStatus); + RemoveStateBits(NS_FRAME_IN_REFLOW); } return rv;