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:
Kashav Madan 2018-07-04 15:16:17 -04:00
Родитель b5f60976d9
Коммит 5261c87fd1
1 изменённых файлов: 1 добавлений и 9 удалений

Просмотреть файл

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