Bug 1394349 - Label dom::SimpleTextTrackEvent with its associated inner window. r=billm
This commit is contained in:
@@ -505,6 +505,14 @@ public:
|
|||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Dispatch() {
|
||||||
|
if (nsCOMPtr<nsIGlobalObject> global = mCue->GetOwnerGlobal()) {
|
||||||
|
global->Dispatch(TaskCategory::Other, do_AddRef(this));
|
||||||
|
} else {
|
||||||
|
NS_DispatchToMainThread(do_AddRef(this));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
nsString mName;
|
nsString mName;
|
||||||
double mTime;
|
double mTime;
|
||||||
@@ -850,7 +858,7 @@ TextTrackManager::TimeMarchesOn()
|
|||||||
|
|
||||||
// Fire the eventList
|
// Fire the eventList
|
||||||
for (uint32_t i = 0; i < eventList.Length(); ++i) {
|
for (uint32_t i = 0; i < eventList.Length(); ++i) {
|
||||||
NS_DispatchToMainThread(eventList[i].forget());
|
eventList[i]->Dispatch();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Step 16.
|
// Step 16.
|
||||||
|
|||||||
Reference in New Issue
Block a user