Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj
This commit is contained in:
@@ -233,11 +233,8 @@ nsHtml5TreeOpExecutor::MarkAsBroken(nsresult aReason)
|
||||
// works out so that we get to terminate and clean up the parser from
|
||||
// a safer point.
|
||||
if (mParser) { // can mParser ever be null here?
|
||||
nsCOMPtr<nsIRunnable> terminator =
|
||||
NS_NewRunnableMethod(GetParser(), &nsHtml5Parser::Terminate);
|
||||
if (NS_FAILED(NS_DispatchToMainThread(terminator))) {
|
||||
NS_WARNING("failed to dispatch executor flush event");
|
||||
}
|
||||
MOZ_ALWAYS_SUCCEEDS(
|
||||
NS_DispatchToMainThread(NewRunnableMethod(GetParser(), &nsHtml5Parser::Terminate)));
|
||||
}
|
||||
return aReason;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user