workaround for smoketest blocker #42686

now we assert and gracefully continue, instead of crashing.
I'll go give this bug to a better owner.  a=brade, r=mscott
This commit is contained in:
sspitzer%netscape.com 2000-06-15 21:20:19 +00:00
parent adc6554ab2
commit bc533192aa

View File

@ -249,6 +249,8 @@ NS_IMETHODIMP nsScrollPortView::ScrollTo(nscoord aX, nscoord aY, PRUint32 aUpdat
// make sure the new position in in bounds
GetScrolledView(scrolledView);
NS_ASSERTION(scrolledView, "no scrolled view");
if (!scrolledView) return NS_ERROR_FAILURE;
scrolledView->GetDimensions(&scrolledSize.width, &scrolledSize.height);
nsSize portSize;