From 08bcd30221ab60a32bf72eaaee2979a117bb4aca Mon Sep 17 00:00:00 2001 From: "pinkerton%netscape.com" Date: Wed, 18 Sep 2002 22:38:23 +0000 Subject: [PATCH] make sure |increment| attribute change notification is sent. fixes bug where native scrollbars wouldn't know the increment so up/down arrows didn't work (bug 161365, r=bryner/sr=sfraser). --- layout/generic/nsGfxScrollFrame.cpp | 2 +- layout/html/base/src/nsGfxScrollFrame.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/generic/nsGfxScrollFrame.cpp b/layout/generic/nsGfxScrollFrame.cpp index 31bd5169118..062e6885d67 100644 --- a/layout/generic/nsGfxScrollFrame.cpp +++ b/layout/generic/nsGfxScrollFrame.cpp @@ -1415,7 +1415,7 @@ nsGfxScrollFrameInner::Layout(nsBoxLayoutState& aState) if (mHasVerticalScrollbar && mVScrollbarBox) { SetAttribute(mVScrollbarBox, nsXULAtoms::maxpos, maxY); SetAttribute(mVScrollbarBox, nsXULAtoms::pageincrement, nscoord(scrollAreaRect.height - fontHeight)); - SetAttribute(mVScrollbarBox, nsXULAtoms::increment, fontHeight, PR_FALSE); + SetAttribute(mVScrollbarBox, nsXULAtoms::increment, fontHeight); } if (mVScrollbarBox) { diff --git a/layout/html/base/src/nsGfxScrollFrame.cpp b/layout/html/base/src/nsGfxScrollFrame.cpp index 31bd5169118..062e6885d67 100644 --- a/layout/html/base/src/nsGfxScrollFrame.cpp +++ b/layout/html/base/src/nsGfxScrollFrame.cpp @@ -1415,7 +1415,7 @@ nsGfxScrollFrameInner::Layout(nsBoxLayoutState& aState) if (mHasVerticalScrollbar && mVScrollbarBox) { SetAttribute(mVScrollbarBox, nsXULAtoms::maxpos, maxY); SetAttribute(mVScrollbarBox, nsXULAtoms::pageincrement, nscoord(scrollAreaRect.height - fontHeight)); - SetAttribute(mVScrollbarBox, nsXULAtoms::increment, fontHeight, PR_FALSE); + SetAttribute(mVScrollbarBox, nsXULAtoms::increment, fontHeight); } if (mVScrollbarBox) {