mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
Bug 1465616 - Don't use SPC-SPS to layout fixed position elements. r=mstange
MozReview-Commit-ID: 5D4ErVFx8Bm --HG-- extra : rebase_source : a930c2cb9492a6361ab16f0121b7a71dd6f6949c
This commit is contained in:
parent
b5f60976d9
commit
5261c87fd1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user