Bug 1465616 - Don't use SPC-SPS to layout fixed position elements. r?mstange
MozReview-Commit-ID: 5D4ErVFx8Bm
--- a/layout/generic/ViewportFrame.cpp
+++ b/layout/generic/ViewportFrame.cpp
@@ -276,25 +276,17 @@ ViewportFrame::AdjustReflowInputAsContai
#endif
AdjustReflowInputForScrollbars(aReflowInput);
NS_ASSERTION(GetAbsoluteContainingBlock()->GetChildList().IsEmpty() ||
(offset.x == 0 && offset.y == 0),
"We don't handle correct positioning of fixed frames with "
"scrollbars in odd positions");
- // If a scroll position clamping scroll-port size has been set, layout
- // fixed position elements to this size instead of the computed size.
- nsRect rect(0, 0, aReflowInput->ComputedWidth(), aReflowInput->ComputedHeight());
- nsIPresShell* ps = PresShell();
- if (ps->IsScrollPositionClampingScrollPortSizeSet()) {
- rect.SizeTo(ps->GetScrollPositionClampingScrollPortSize());
- }
-
- return rect;
+ return nsRect(0, 0, aReflowInput->ComputedWidth(), aReflowInput->ComputedHeight());
}
void
ViewportFrame::Reflow(nsPresContext* aPresContext,
ReflowOutput& aDesiredSize,
const ReflowInput& aReflowInput,
nsReflowStatus& aStatus)
{