mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 770453 - [b2g] semi-transparent scroll bars should not occupy content-flow space. r=roc
This commit is contained in:
parent
5bc1a73c63
commit
a74f371136
@ -478,8 +478,9 @@ nsHTMLScrollFrame::ReflowScrolledFrame(ScrollReflowState* aState,
|
||||
computedMaxHeight = NS_UNCONSTRAINEDSIZE;
|
||||
}
|
||||
if (aAssumeHScroll) {
|
||||
nsSize hScrollbarPrefSize =
|
||||
mInner.mHScrollbarBox->GetPrefSize(const_cast<nsBoxLayoutState&>(aState->mBoxState));
|
||||
nsSize hScrollbarPrefSize;
|
||||
GetScrollbarMetrics(aState->mBoxState, mInner.mHScrollbarBox,
|
||||
nsnull, &hScrollbarPrefSize, false);
|
||||
if (computedHeight != NS_UNCONSTRAINEDSIZE)
|
||||
computedHeight = NS_MAX(0, computedHeight - hScrollbarPrefSize.height);
|
||||
computedMinHeight = NS_MAX(0, computedMinHeight - hScrollbarPrefSize.height);
|
||||
@ -488,8 +489,9 @@ nsHTMLScrollFrame::ReflowScrolledFrame(ScrollReflowState* aState,
|
||||
}
|
||||
|
||||
if (aAssumeVScroll) {
|
||||
nsSize vScrollbarPrefSize =
|
||||
mInner.mVScrollbarBox->GetPrefSize(const_cast<nsBoxLayoutState&>(aState->mBoxState));
|
||||
nsSize vScrollbarPrefSize;
|
||||
GetScrollbarMetrics(aState->mBoxState, mInner.mVScrollbarBox,
|
||||
&vScrollbarPrefSize, nsnull, true);
|
||||
availWidth = NS_MAX(0, availWidth - vScrollbarPrefSize.width);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user