mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 904178 - Part b: Use nsIDocument in nsEventListenerManager::SetEventHandler; r=smaug
This commit is contained in:
parent
414b1a4dad
commit
1108a535f4
@ -669,9 +669,7 @@ nsEventListenerManager::SetEventHandler(nsIAtom *aName,
|
||||
} else {
|
||||
nsCOMPtr<nsPIDOMWindow> win = GetTargetAsInnerWindow();
|
||||
if (win) {
|
||||
nsCOMPtr<nsIDOMDocument> domdoc;
|
||||
win->GetDocument(getter_AddRefs(domdoc));
|
||||
doc = do_QueryInterface(domdoc);
|
||||
doc = win->GetDoc();
|
||||
global = do_QueryInterface(win);
|
||||
} else {
|
||||
global = do_QueryInterface(mTarget);
|
||||
|
Loading…
Reference in New Issue
Block a user