зеркало из https://github.com/mozilla/pjs.git
Check for null scrolled view before accessing it. b=98270 patch from duraid@fl.net.au. r=karnaze@netscape.com, sr=attinasi@netscape.com
This commit is contained in:
Родитель
fee55d9d3f
Коммит
414efb5dfe
|
@ -744,11 +744,11 @@ void nsScrollingView::HandleScrollEvent(nsGUIEvent *aEvent, PRUint32 aEventFlags
|
|||
// Position the scrolled view
|
||||
nsIView *scrolledView;
|
||||
GetScrolledView(scrolledView);
|
||||
scrolledView->SetPosition(-mOffsetX, -mOffsetY);
|
||||
|
||||
Scroll(scrolledView, dx, dy, t2p, 0);
|
||||
|
||||
NotifyScrollPositionDidChange(offsetX, offsetY);
|
||||
if(scrolledView) {
|
||||
scrolledView->SetPosition(-mOffsetX, -mOffsetY);
|
||||
Scroll(scrolledView, dx, dy, t2p, 0);
|
||||
NotifyScrollPositionDidChange(offsetX, offsetY);
|
||||
}
|
||||
}
|
||||
|
||||
NS_IMETHODIMP_(void) nsScrollingView::Notify(nsITimer * aTimer)
|
||||
|
|
Загрузка…
Ссылка в новой задаче