mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1116718 part 1 - Don't bother calculating overflow areas when they will be discarded anyway. r=roc
This commit is contained in:
parent
c796af4f6d
commit
662a18f196
@ -252,18 +252,16 @@ ViewportFrame::Reflow(nsPresContext* aPresContext,
|
||||
}
|
||||
|
||||
nsRect rect = AdjustReflowStateAsContainingBlock(&reflowState);
|
||||
|
||||
// Just reflow all the fixed-pos frames.
|
||||
GetAbsoluteContainingBlock()->Reflow(this, aPresContext, reflowState, aStatus,
|
||||
rect,
|
||||
false, true, true, // XXX could be optimized
|
||||
&aDesiredSize.mOverflowAreas);
|
||||
|
||||
nsOverflowAreas* overflowAreas = &aDesiredSize.mOverflowAreas;
|
||||
nsIScrollableFrame* rootScrollFrame =
|
||||
aPresContext->PresShell()->GetRootScrollFrameAsScrollable();
|
||||
if (rootScrollFrame && !rootScrollFrame->IsIgnoringViewportClipping()) {
|
||||
aDesiredSize.SetOverflowAreasToDesiredBounds();
|
||||
overflowAreas = nullptr;
|
||||
}
|
||||
GetAbsoluteContainingBlock()->Reflow(this, aPresContext, reflowState, aStatus,
|
||||
rect,
|
||||
false, true, true, // XXX could be optimized
|
||||
overflowAreas);
|
||||
}
|
||||
|
||||
if (mFrames.NotEmpty()) {
|
||||
|
Loading…
Reference in New Issue
Block a user