Fix asymmetry so things are the same with scrollbars on the left. b=330732 r+sr=roc

This commit is contained in:
dbaron%dbaron.org 2006-03-23 00:11:01 +00:00
Родитель 705187274e
Коммит cf374c49f0
1 изменённых файлов: 5 добавлений и 5 удалений

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

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