зеркало из https://github.com/mozilla/gecko-dev.git
Bug 949294 - Mark the delegating frame as being IN_REFLOW while reflowing abs.pos. children. r=roc
This commit is contained in:
Родитель
5ce4271c24
Коммит
3e7a93ab5f
|
@ -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());
|
||||
|
|
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче