mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Add Miscellaneous event type to DOM task source
This commit is contained in:
parent
e3eeb643f0
commit
5dde01ab5a
1 changed files with 4 additions and 2 deletions
|
@ -52,7 +52,8 @@ pub enum DOMManipulationTask {
|
|||
// https://html.spec.whatwg.org/multipage/#planned-navigation
|
||||
PlannedNavigation(Box<Runnable + Send>),
|
||||
// https://html.spec.whatwg.org/multipage/#send-a-storage-notification
|
||||
SendStorageNotification(Box<MainThreadRunnable + Send>)
|
||||
SendStorageNotification(Box<MainThreadRunnable + Send>),
|
||||
Miscellaneous(Box<Runnable + Send>),
|
||||
}
|
||||
|
||||
impl DOMManipulationTask {
|
||||
|
@ -72,7 +73,8 @@ impl DOMManipulationTask {
|
|||
FireToggleEvent(runnable) => runnable.handler(),
|
||||
MediaTask(runnable) => runnable.handler(),
|
||||
PlannedNavigation(runnable) => runnable.handler(),
|
||||
SendStorageNotification(runnable) => runnable.handler(script_thread)
|
||||
SendStorageNotification(runnable) => runnable.handler(script_thread),
|
||||
Miscellaneous(runnable) => runnable.handler(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue