From 966a36d8dfe7f4745839ce6e04e3a91d82af51bd Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Sun, 23 Jan 2005 20:55:53 +0000 Subject: [PATCH] Use the right view observer for events. Fixes some crashes. Bug 279205, r+sr=roc --- view/src/nsViewManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/src/nsViewManager.cpp b/view/src/nsViewManager.cpp index 2d5252259765..89a9d1542838 100644 --- a/view/src/nsViewManager.cpp +++ b/view/src/nsViewManager.cpp @@ -2425,7 +2425,7 @@ nsEventStatus nsViewManager::HandleEvent(nsView* aView, nsGUIEvent* aEvent, PRBo // Hold a refcount to the observer. The continued existence of the observer will // delay deletion of this view hierarchy should the event want to cause its // destruction in, say, some JavaScript event handler. - nsCOMPtr vobs = GetViewObserver(); + nsCOMPtr vobs = vVM->GetViewObserver(); if (vobs) { vobs->HandleEvent(v, aEvent, &status, i == targetViews.Count() - 1, handled); }