Fixing more bustage.
git-svn-id: svn://10.0.0.236/trunk@152573 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
231dd42833
commit
b6eaa73206
@ -91,11 +91,12 @@ mozXMLTermUtils::ConvertDOMWindowToDocShell(nsIDOMWindowInternal* aDOMWindow,
|
||||
if (!globalObject)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
globalObject->GetDocShell(aDocShell);
|
||||
|
||||
*aDocShell = globalObject->GetDocShell();
|
||||
if (!*aDocShell)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
NS_ADDREF(*aDocShell);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
@ -215,7 +216,10 @@ mozXMLTermUtils::GetScriptContext(nsIDOMDocument* aDOMDocument,
|
||||
if (!scriptGlobalObject)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
return scriptGlobalObject->GetContext(aScriptContext);
|
||||
*aScriptContext = scriptGlobalObject->GetContext();
|
||||
NS_IF_ADDREF(*aScriptContext);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user