From ee643e071c2b0b1b6fc81d0934e2da03568675b4 Mon Sep 17 00:00:00 2001 From: "neil%parkwaycc.co.uk" Date: Wed, 28 Apr 2004 12:56:02 +0000 Subject: [PATCH] Bug 230965 scrollMax[XY] should not throw exceptions patch based on roc's patch for scroll[XY] that was used to fix bug 202206 r/sr=jst git-svn-id: svn://10.0.0.236/trunk@155633 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/dom/src/base/nsGlobalWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/dom/src/base/nsGlobalWindow.cpp b/mozilla/dom/src/base/nsGlobalWindow.cpp index 3da98976b0b..1e46d8b6a0a 100644 --- a/mozilla/dom/src/base/nsGlobalWindow.cpp +++ b/mozilla/dom/src/base/nsGlobalWindow.cpp @@ -1962,7 +1962,7 @@ GlobalWindowImpl::GetScrollMaxXY(PRInt32* aScrollMaxX, PRInt32* aScrollMaxY) GetScrollInfo(&view, &p2t, &t2p); if (!view) - return NS_ERROR_FAILURE; + return NS_OK; // bug 230965 changed from NS_ERROR_FAILURE nsSize scrolledSize; rv = view->GetContainerSize(&scrolledSize.width, &scrolledSize.height);