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:
Mats Palmgren 2015-01-06 09:27:56 +00:00
parent 5abc649388
commit 066e51211b

View File

@ -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);