Backed out changeset 9846de3bd954 (bug 1372405)

This commit is contained in:
Carsten "Tomcat" Book
2017-06-20 08:27:02 +02:00
parent 0640fe35ce
commit bbe9441993
613 changed files with 3568 additions and 6338 deletions

View File

@@ -997,9 +997,9 @@ private:
RefPtr<ScriptLoader> mLoader;
RefPtr<ScriptLoadRequest> mRequest;
public:
ScriptRequestProcessor(ScriptLoader* aLoader, ScriptLoadRequest* aRequest)
: Runnable("dom::ScriptRequestProcessor")
, mLoader(aLoader)
ScriptRequestProcessor(ScriptLoader* aLoader,
ScriptLoadRequest* aRequest)
: mLoader(aLoader)
, mRequest(aRequest)
{}
NS_IMETHOD Run() override
@@ -1154,8 +1154,7 @@ ScriptLoader::ProcessScriptElement(nsIScriptElement* aElement)
if (!scriptURI) {
// Asynchronously report the failure to create a URI object
NS_DispatchToCurrentThread(
NewRunnableMethod("nsIScriptElement::FireErrorEvent",
aElement,
NewRunnableMethod(aElement,
&nsIScriptElement::FireErrorEvent));
return false;
}
@@ -1245,8 +1244,7 @@ ScriptLoader::ProcessScriptElement(nsIScriptElement* aElement)
// Asynchronously report the load failure
NS_DispatchToCurrentThread(
NewRunnableMethod("nsIScriptElement::FireErrorEvent",
aElement,
NewRunnableMethod(aElement,
&nsIScriptElement::FireErrorEvent));
return false;
}
@@ -1430,8 +1428,7 @@ class NotifyOffThreadScriptLoadCompletedRunnable : public Runnable
public:
NotifyOffThreadScriptLoadCompletedRunnable(ScriptLoadRequest* aRequest,
ScriptLoader* aLoader)
: Runnable("dom::NotifyOffThreadScriptLoadCompletedRunnable")
, mRequest(aRequest)
: mRequest(aRequest)
, mLoader(aLoader)
, mDocGroup(aLoader->GetDocGroup())
, mToken(nullptr)
@@ -2324,10 +2321,8 @@ void
ScriptLoader::ProcessPendingRequestsAsync()
{
if (HasPendingRequests()) {
nsCOMPtr<nsIRunnable> task =
NewRunnableMethod("dom::ScriptLoader::ProcessPendingRequests",
this,
&ScriptLoader::ProcessPendingRequests);
nsCOMPtr<nsIRunnable> task = NewRunnableMethod(this,
&ScriptLoader::ProcessPendingRequests);
if (mDocument) {
mDocument->Dispatch("ScriptLoader", TaskCategory::Other, task.forget());
} else {