зеркало из https://github.com/mozilla/pjs.git
Update some GetScriptGlobalObject() callers to the right signature. Bug
303084, patch by Bastiaan Jacques <b.jacques@planet.nl>, r+sr=bzbarsky
This commit is contained in:
Родитель
f51f2f1db1
Коммит
0154f05af9
|
@ -2171,8 +2171,7 @@ PrintDocTree(nsIDocShellTreeNode * aParentNode, int aLevel)
|
|||
parentAsDocShell->GetPresContext(getter_AddRefs(presContext));
|
||||
nsIDocument *doc = presShell->GetDocument();
|
||||
|
||||
nsCOMPtr<nsIScriptGlobalObject> sgo;
|
||||
doc->GetScriptGlobalObject(getter_AddRefs(sgo));
|
||||
nsIScriptGlobalObject* sgo = doc->GetScriptGlobalObject();
|
||||
nsCOMPtr<nsIDOMWindowInternal> domwin(do_QueryInterface(sgo));
|
||||
|
||||
nsCOMPtr<nsIWidget> widget;
|
||||
|
|
|
@ -200,8 +200,7 @@ CHClickListener::MouseDown(nsIDOMEvent* aEvent)
|
|||
// I'm going to assume that if we got a mousedown for a content node,
|
||||
// it's actually in a document.
|
||||
|
||||
nsCOMPtr<nsIScriptGlobalObject> sgo;
|
||||
doc->GetScriptGlobalObject(getter_AddRefs(sgo));
|
||||
nsIScriptGlobalObject* sgo = doc->GetScriptGlobalObject();
|
||||
nsCOMPtr<nsIDOMWindow> window = do_QueryInterface(sgo);
|
||||
if (!window)
|
||||
return NS_OK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче