mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
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:
parent
adc6554ab2
commit
bc533192aa
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user