Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement basic <media> infrastructure #8454

Merged
merged 13 commits into from May 4, 2016

Add media tasks to the DOM manipulation task queue.

  • Loading branch information
jdm committed May 3, 2016
commit 5918954edd36d2eef5dd474348570685a1c8840d
@@ -33,6 +33,8 @@ pub enum DOMManipulationTask {
FireSimpleEvent(Atom, Trusted<EventTarget>),
// https://html.spec.whatwg.org/multipage/#details-notification-task-steps
FireToggleEvent(Box<Runnable + Send>),
// Placeholder until there's a real media element task queue implementation
MediaTask(Box<Runnable + Send>),
// https://html.spec.whatwg.org/multipage/#planned-navigation
PlannedNavigation(Box<Runnable + Send>),
// 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)
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.