Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user