mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1343798 - Label runnables for HTMLTrackElement. r=jwwang
MozReview-Commit-ID: El7LXJFAHiM --HG-- extra : rebase_source : 1f23f3d7cd09e30be9cfa191f6627bf1bacc115c
This commit is contained in:
parent
291e7ca6b4
commit
f82170d314
@ -433,12 +433,17 @@ HTMLTrackElement::SetReadyState(uint16_t aReadyState)
|
||||
void
|
||||
HTMLTrackElement::DispatchTrackRunnable(const nsString& aEventName)
|
||||
{
|
||||
nsIDocument* doc = OwnerDoc();
|
||||
if (!doc) {
|
||||
return;
|
||||
}
|
||||
nsCOMPtr<nsIRunnable> runnable =
|
||||
NewRunnableMethod
|
||||
<const nsString>(this,
|
||||
&HTMLTrackElement::DispatchTrustedEvent,
|
||||
aEventName);
|
||||
NS_DispatchToMainThread(runnable);
|
||||
doc->Dispatch("HTMLTrackElement::DispatchTrackRunnable",
|
||||
TaskCategory::Other, runnable.forget());
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user