diff options
author | Martin Robinson <mrobinson@igalia.com> | 2020-04-30 15:38:56 +0200 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2020-05-05 15:13:35 +0200 |
commit | b585ce5b1f181996b2f8109a4e045eb6f5b3e2a0 (patch) | |
tree | 2b99b00e665a8aef857f89f355eef9f269095368 /components/script/dom/htmlvideoelement.rs | |
parent | 5e44327325cdc92dffa40b92394e8b2b68df97e0 (diff) | |
download | servo-b585ce5b1f181996b2f8109a4e045eb6f5b3e2a0.tar.gz servo-b585ce5b1f181996b2f8109a4e045eb6f5b3e2a0.zip |
Use a restyle for animation ticks
This change corrects synchronization issues with animations, by
reworking the animation processing model to do a quick restyle and
incremental layout when ticking animations.
While this change adds overhead to animation ticks, the idea is that
this will be the fallback when synchronous behavior is required to
fulfill specification requirements. In the optimistic case, many
animations could be updated and applied off-the-main-thread and then
resynchronized when style information is queried by script.
Fixes #13865.
Diffstat (limited to 'components/script/dom/htmlvideoelement.rs')
-rw-r--r-- | components/script/dom/htmlvideoelement.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/dom/htmlvideoelement.rs b/components/script/dom/htmlvideoelement.rs index a890b49af72..c06dc083a22 100644 --- a/components/script/dom/htmlvideoelement.rs +++ b/components/script/dom/htmlvideoelement.rs @@ -27,8 +27,8 @@ use html5ever::{LocalName, Prefix}; use ipc_channel::ipc; use ipc_channel::router::ROUTER; use net_traits::image_cache::{ - CanRequestImages, ImageCache, ImageCacheResult, ImageOrMetadataAvailable, ImageResponse, - PendingImageId, UsePlaceholder, + ImageCache, ImageCacheResult, ImageOrMetadataAvailable, ImageResponse, PendingImageId, + UsePlaceholder, }; use net_traits::request::{CredentialsMode, Destination, RequestBuilder}; use net_traits::{ @@ -163,7 +163,6 @@ impl HTMLVideoElement { None, sender, UsePlaceholder::No, - CanRequestImages::Yes, ); match cache_result { |