Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)

MozReview-Commit-ID: DKR6ROiHRS7
This commit is contained in:
Bill McCloskey
2017-06-12 12:34:10 -07:00
parent e3dc1e38a4
commit ce42826bdf
624 changed files with 6328 additions and 3555 deletions

View File

@@ -51,7 +51,8 @@ class nsHtml5ExecutorReflusher : public Runnable
RefPtr<nsHtml5TreeOpExecutor> mExecutor;
public:
explicit nsHtml5ExecutorReflusher(nsHtml5TreeOpExecutor* aExecutor)
: mExecutor(aExecutor)
: mozilla::Runnable("nsHtml5ExecutorReflusher")
, mExecutor(aExecutor)
{}
NS_IMETHOD Run() override
{
@@ -240,7 +241,8 @@ nsHtml5TreeOpExecutor::MarkAsBroken(nsresult aReason)
// a safer point.
if (mParser) { // can mParser ever be null here?
MOZ_ALWAYS_SUCCEEDS(
NS_DispatchToMainThread(NewRunnableMethod(GetParser(), &nsHtml5Parser::Terminate)));
NS_DispatchToMainThread(NewRunnableMethod("nsHtml5Parser::Terminate",
GetParser(), &nsHtml5Parser::Terminate)));
}
return aReason;
}