From 5918954edd36d2eef5dd474348570685a1c8840d Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Thu, 28 Apr 2016 17:18:06 -0400 Subject: [PATCH] Add media tasks to the DOM manipulation task queue. --- components/script/task_source/dom_manipulation.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/script/task_source/dom_manipulation.rs b/components/script/task_source/dom_manipulation.rs index 9676ade6ded..5993825a1be 100644 --- a/components/script/task_source/dom_manipulation.rs +++ b/components/script/task_source/dom_manipulation.rs @@ -33,6 +33,8 @@ pub enum DOMManipulationTask { FireSimpleEvent(Atom, Trusted), // https://html.spec.whatwg.org/multipage/#details-notification-task-steps FireToggleEvent(Box), + // Placeholder until there's a real media element task queue implementation + MediaTask(Box), // https://html.spec.whatwg.org/multipage/#planned-navigation PlannedNavigation(Box), // https://html.spec.whatwg.org/multipage/#send-a-storage-notification @@ -54,6 +56,7 @@ impl DOMManipulationTask { target.fire_simple_event(&*name); } FireToggleEvent(runnable) => runnable.handler(), + MediaTask(runnable) => runnable.handler(), PlannedNavigation(runnable) => runnable.handler(), SendStorageNotification(runnable) => runnable.handler(script_thread) }