diff --git a/layout/generic/ViewportFrame.cpp b/layout/generic/ViewportFrame.cpp index 85f972e81a3c..751bec1ead1c 100644 --- a/layout/generic/ViewportFrame.cpp +++ b/layout/generic/ViewportFrame.cpp @@ -281,15 +281,7 @@ ViewportFrame::AdjustReflowInputAsContainingBlock(ReflowInput* aReflowInput) con "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