Additional fix for Bug 536092

This commit is contained in:
Olli Pettay 2010-03-31 16:50:05 +03:00
parent 21f45224d7
commit f2f7c2cdc0
2 changed files with 1 additions and 3 deletions

View File

@ -474,7 +474,7 @@ nsEventDispatcher::Dispatch(nsISupports* aTarget,
// Set the target to be the original dispatch target,
aEvent->target = target;
// but use chrome event handler for event target chain.
aTarget = win->GetChromeEventHandler();
target = do_QueryInterface(win->GetChromeEventHandler());
}
}

View File

@ -525,8 +525,6 @@ public:
// Additional type info for user defined events
nsCOMPtr<nsIAtom> userType;
// Event targets, needed by DOM Events
// Using nsISupports, not nsIDOMEventTarget because in some cases
// nsIDOMEventTarget is implemented as a tearoff.
nsCOMPtr<nsPIDOMEventTarget> target;
nsCOMPtr<nsPIDOMEventTarget> currentTarget;
nsCOMPtr<nsPIDOMEventTarget> originalTarget;