mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Back out cset 3d9ce7853452 (bug 1078373) for mochitest failures. r=me on a CLOSED TREE
This commit is contained in:
parent
732d9e9da5
commit
69ab7f4405
@ -351,7 +351,6 @@ nsHTMLScrollFrame::TryLayout(ScrollReflowState* aState,
|
||||
ComputeInsideBorderSize(aState, desiredInsideBorderSize);
|
||||
nsSize scrollPortSize = nsSize(std::max(0, aState->mInsideBorderSize.width - vScrollbarDesiredWidth),
|
||||
std::max(0, aState->mInsideBorderSize.height - hScrollbarDesiredHeight));
|
||||
nsSize visualScrollPortSize = mHelper.GetScrollPositionClampingScrollPortSize();
|
||||
|
||||
if (!aForce) {
|
||||
nsRect scrolledRect =
|
||||
@ -363,7 +362,7 @@ nsHTMLScrollFrame::TryLayout(ScrollReflowState* aState,
|
||||
if (aState->mStyles.mHorizontal != NS_STYLE_OVERFLOW_HIDDEN) {
|
||||
bool wantHScrollbar =
|
||||
aState->mStyles.mHorizontal == NS_STYLE_OVERFLOW_SCROLL ||
|
||||
scrolledRect.XMost() >= visualScrollPortSize.width + oneDevPixel ||
|
||||
scrolledRect.XMost() >= scrollPortSize.width + oneDevPixel ||
|
||||
scrolledRect.x <= -oneDevPixel;
|
||||
if (scrollPortSize.width < hScrollbarMinSize.width)
|
||||
wantHScrollbar = false;
|
||||
@ -375,7 +374,7 @@ nsHTMLScrollFrame::TryLayout(ScrollReflowState* aState,
|
||||
if (aState->mStyles.mVertical != NS_STYLE_OVERFLOW_HIDDEN) {
|
||||
bool wantVScrollbar =
|
||||
aState->mStyles.mVertical == NS_STYLE_OVERFLOW_SCROLL ||
|
||||
scrolledRect.YMost() >= visualScrollPortSize.height + oneDevPixel ||
|
||||
scrolledRect.YMost() >= scrollPortSize.height + oneDevPixel ||
|
||||
scrolledRect.y <= -oneDevPixel;
|
||||
if (scrollPortSize.height < vScrollbarMinSize.height)
|
||||
wantVScrollbar = false;
|
||||
|
Loading…
Reference in New Issue
Block a user