Fixing bug 389911. Removing nsIScriptGlobalObject::Get/SetGlobalObjectOwner() as it's not needed any more. r+sr=peterv@propagandism.org

git-svn-id: svn://10.0.0.236/trunk@231758 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jst%mozilla.org
2007-08-09 22:30:30 +00:00
parent 73f819209c
commit 4abaf2e122
9 changed files with 46 additions and 102 deletions

View File

@@ -3531,7 +3531,6 @@ nsDocShell::Destroy()
nsCOMPtr<nsPIDOMWindow> win(do_QueryInterface(mScriptGlobal));
win->SetDocShell(nsnull);
mScriptGlobal->SetGlobalObjectOwner(nsnull);
mScriptGlobal = nsnull;
}
@@ -8521,8 +8520,6 @@ nsDocShell::EnsureScriptEnvironment()
nsCOMPtr<nsPIDOMWindow> win(do_QueryInterface(mScriptGlobal));
win->SetDocShell(static_cast<nsIDocShell *>(this));
mScriptGlobal->
SetGlobalObjectOwner(static_cast<nsIScriptGlobalObjectOwner *>(this));
// Ensure the script object is set to run javascript - other languages
// setup on demand.