diff options
author | Gregory Terzian <gterzian@users.noreply.github.com> | 2017-03-31 17:43:45 +0800 |
---|---|---|
committer | Gregory Terzian <gterzian@users.noreply.github.com> | 2017-05-25 08:01:25 +0800 |
commit | 71b0c1016461ab51daa9fc13e6454be1c8553c97 (patch) | |
tree | c6d705268ea9cd29cdd21097a0e1588e8694a738 /components/script/microtask.rs | |
parent | f05491166f21879f74758b2f03bbc4c4a4c31eb8 (diff) | |
download | servo-71b0c1016461ab51daa9fc13e6454be1c8553c97.tar.gz servo-71b0c1016461ab51daa9fc13e6454be1c8553c97.zip |
improve spec compliance of update the image data
Diffstat (limited to 'components/script/microtask.rs')
-rw-r--r-- | components/script/microtask.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/components/script/microtask.rs b/components/script/microtask.rs index 8f10dbcf489..5028f2849da 100644 --- a/components/script/microtask.rs +++ b/components/script/microtask.rs @@ -11,6 +11,7 @@ use dom::bindings::cell::DOMRefCell; use dom::bindings::codegen::Bindings::PromiseBinding::PromiseJobCallback; use dom::bindings::js::Root; use dom::globalscope::GlobalScope; +use dom::htmlimageelement::ImageElementMicrotask; use dom::htmlmediaelement::MediaElementMicrotask; use dom::mutationobserver::MutationObserver; use msg::constellation_msg::PipelineId; @@ -31,6 +32,7 @@ pub struct MicrotaskQueue { pub enum Microtask { Promise(EnqueuedPromiseCallback), MediaElement(MediaElementMicrotask), + ImageElement(ImageElementMicrotask), NotifyMutationObservers, } @@ -81,7 +83,10 @@ impl MicrotaskQueue { }, Microtask::MediaElement(ref task) => { task.handler(); - } + }, + Microtask::ImageElement(ref task) => { + task.handler(); + }, Microtask::NotifyMutationObservers => { MutationObserver::notify_mutation_observers(); } |