зеркало из https://github.com/mozilla/gecko-dev.git
Bug 256610 Crash [ @ nsViewManager::GetMouseEventGrabber]
patch by cst@andrew.cmu.edu r=roc sr=roc
This commit is contained in:
Родитель
797758c14c
Коммит
1ac8922512
|
@ -2360,9 +2360,15 @@ NS_IMETHODIMP nsViewManager::GrabKeyEvents(nsIView *aView, PRBool &aResult)
|
|||
nsView* nsViewManager::GetMouseEventGrabber() const {
|
||||
nsView* root = mRootView;
|
||||
while (root && root->GetParent()) {
|
||||
root = root->GetParent()->GetViewManager()->mRootView;
|
||||
nsViewManager* viewManager = root->GetParent()->GetViewManager();
|
||||
if (!viewManager)
|
||||
return nsnull;
|
||||
root = viewManager->mRootView;
|
||||
}
|
||||
return root ? root->GetViewManager()->mMouseGrabber : nsnull;
|
||||
if (!root)
|
||||
return nsnull;
|
||||
nsViewManager* viewManager = root->GetViewManager();
|
||||
return viewManager ? viewManager->mMouseGrabber : nsnull;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsViewManager::GetMouseEventGrabber(nsIView *&aView)
|
||||
|
|
Загрузка…
Ссылка в новой задаче