mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
Fix asymmetry so things are the same with scrollbars on the left. b=330732 r+sr=roc
This commit is contained in:
parent
705187274e
commit
cf374c49f0
@ -462,11 +462,11 @@ nsLayoutUtils::GetNearestScrollingView(nsIView* aView, Direction aDirection)
|
||||
// something to scroll to in that direction.
|
||||
if (aDirection != eHorizontal &&
|
||||
ss.mVertical != NS_STYLE_OVERFLOW_HIDDEN &&
|
||||
(aDirection == eEither || totalHeight > visibleSize.height || margin.right))
|
||||
(aDirection == eEither || totalHeight > visibleSize.height || margin.LeftRight()))
|
||||
break;
|
||||
if (aDirection != eVertical &&
|
||||
ss.mHorizontal != NS_STYLE_OVERFLOW_HIDDEN &&
|
||||
(aDirection == eEither || totalWidth > visibleSize.width || margin.bottom))
|
||||
(aDirection == eEither || totalWidth > visibleSize.width || margin.TopBottom()))
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -609,9 +609,9 @@ nsLayoutUtils::IsInitialContainingBlock(nsIFrame* aFrame)
|
||||
#ifdef DEBUG
|
||||
#include <stdio.h>
|
||||
|
||||
static PRBool gDumpPaintList = 0;
|
||||
static PRBool gDumpEventList = 0;
|
||||
static PRBool gDumpRepaintRegionForCopy = 0;
|
||||
static PRBool gDumpPaintList = PR_FALSE;
|
||||
static PRBool gDumpEventList = PR_FALSE;
|
||||
static PRBool gDumpRepaintRegionForCopy = PR_FALSE;
|
||||
#endif
|
||||
|
||||
nsIFrame*
|
||||
|
Loading…
Reference in New Issue
Block a user