mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 1116718 part 2 - Don't bother setting up a reflow state for positioned children if there are none. r=roc
This commit is contained in:
parent
5abc649388
commit
066e51211b
@ -236,7 +236,7 @@ ViewportFrame::Reflow(nsPresContext* aPresContext,
|
||||
aDesiredSize.SetSize(wm, maxSize);
|
||||
aDesiredSize.SetOverflowAreasToDesiredBounds();
|
||||
|
||||
if (IsAbsoluteContainer()) {
|
||||
if (HasAbsolutelyPositionedChildren()) {
|
||||
// Make a copy of the reflow state and change the computed width and height
|
||||
// to reflect the available space for the fixed items
|
||||
nsHTMLReflowState reflowState(aReflowState);
|
||||
|
Loading…
Reference in New Issue
Block a user