Fix asymmetry so things are the same with scrollbars on the left. b=330732 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@192819 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
c85390fc6f
commit
cd07526c63
@ -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…
x
Reference in New Issue
Block a user