From 5cd9f54b08cb0b5540d23c06c40c37dd2390e5b8 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). git-svn-id: svn://10.0.0.236/trunk@129971 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/generic/nsGfxScrollFrame.cpp | 2 +- mozilla/layout/html/base/src/nsGfxScrollFrame.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/generic/nsGfxScrollFrame.cpp b/mozilla/layout/generic/nsGfxScrollFrame.cpp index 31bd5169118..062e6885d67 100644 --- a/mozilla/layout/generic/nsGfxScrollFrame.cpp +++ b/mozilla/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/mozilla/layout/html/base/src/nsGfxScrollFrame.cpp b/mozilla/layout/html/base/src/nsGfxScrollFrame.cpp index 31bd5169118..062e6885d67 100644 --- a/mozilla/layout/html/base/src/nsGfxScrollFrame.cpp +++ b/mozilla/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) {