aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlimageelement.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2020-04-30 15:38:56 +0200
committerMartin Robinson <mrobinson@igalia.com>2020-05-05 15:13:35 +0200
commitb585ce5b1f181996b2f8109a4e045eb6f5b3e2a0 (patch)
tree2b99b00e665a8aef857f89f355eef9f269095368 /components/script/dom/htmlimageelement.rs
parent5e44327325cdc92dffa40b92394e8b2b68df97e0 (diff)
downloadservo-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/htmlimageelement.rs')
-rw-r--r--components/script/dom/htmlimageelement.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/components/script/dom/htmlimageelement.rs b/components/script/dom/htmlimageelement.rs
index 052b622bb9f..595d0d52d41 100644
--- a/components/script/dom/htmlimageelement.rs
+++ b/components/script/dom/htmlimageelement.rs
@@ -60,8 +60,8 @@ use mime::{self, Mime};
use msg::constellation_msg::PipelineId;
use net_traits::image::base::{Image, ImageMetadata};
use net_traits::image_cache::{
- CanRequestImages, CorsStatus, ImageCache, ImageCacheResult, ImageOrMetadataAvailable,
- ImageResponse, PendingImageId, PendingImageResponse, UsePlaceholder,
+ CorsStatus, ImageCache, ImageCacheResult, ImageOrMetadataAvailable, ImageResponse,
+ PendingImageId, PendingImageResponse, UsePlaceholder,
};
use net_traits::request::{CorsSettings, Destination, Initiator, RequestBuilder};
use net_traits::{FetchMetadata, FetchResponseListener, FetchResponseMsg, NetworkError};
@@ -326,7 +326,6 @@ impl HTMLImageElement {
cors_setting_for_element(self.upcast()),
sender,
UsePlaceholder::Yes,
- CanRequestImages::Yes,
);
match cache_result {
@@ -1107,7 +1106,6 @@ impl HTMLImageElement {
cors_setting_for_element(self.upcast()),
sender,
UsePlaceholder::No,
- CanRequestImages::Yes,
);
match cache_result {