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

This commit is contained in:
neil%parkwaycc.co.uk 2004-04-28 12:56:02 +00:00
Родитель eb9446c6ee
Коммит 9d04a7ed61
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -1962,7 +1962,7 @@ GlobalWindowImpl::GetScrollMaxXY(PRInt32* aScrollMaxX, PRInt32* aScrollMaxY)
GetScrollInfo(&view, &p2t, &t2p); GetScrollInfo(&view, &p2t, &t2p);
if (!view) if (!view)
return NS_ERROR_FAILURE; return NS_OK; // bug 230965 changed from NS_ERROR_FAILURE
nsSize scrolledSize; nsSize scrolledSize;
rv = view->GetContainerSize(&scrolledSize.width, &scrolledSize.height); rv = view->GetContainerSize(&scrolledSize.width, &scrolledSize.height);