зеркало из https://github.com/mozilla/gecko-dev.git
Bug 694867 - Part e: Pass JSScript to nsXULDocument::ExecuteScript; r=volkmar
This commit is contained in:
Родитель
e8c4b3139e
Коммит
68ad7e544d
|
@ -3623,7 +3623,7 @@ nsXULDocument::OnStreamComplete(nsIStreamLoader* aLoader,
|
|||
|
||||
|
||||
nsresult
|
||||
nsXULDocument::ExecuteScript(nsIScriptContext * aContext, void * aScriptObject)
|
||||
nsXULDocument::ExecuteScript(nsIScriptContext * aContext, JSScript* aScriptObject)
|
||||
{
|
||||
NS_PRECONDITION(aScriptObject != nsnull && aContext != nsnull, "null ptr");
|
||||
if (! aScriptObject || ! aContext)
|
||||
|
|
|
@ -396,7 +396,7 @@ protected:
|
|||
* Execute the precompiled script object scoped by this XUL document's
|
||||
* containing window object, and using its associated script context.
|
||||
*/
|
||||
nsresult ExecuteScript(nsIScriptContext *aContext, void* aScriptObject);
|
||||
nsresult ExecuteScript(nsIScriptContext *aContext, JSScript* aScriptObject);
|
||||
|
||||
/**
|
||||
* Helper method for the above that uses aScript to find the appropriate
|
||||
|
|
Загрузка…
Ссылка в новой задаче