mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Animation: Aggregate Animated Image Info to Document (#36141)
Signed-off-by: rayguo17 <rayguo17@gmail.com>
This commit is contained in:
parent
53f7c7b1de
commit
ed3dd8fbe0
10 changed files with 145 additions and 9 deletions
|
@ -1967,6 +1967,9 @@ impl Window {
|
|||
pending_restyles,
|
||||
animation_timeline_value: document.current_animation_timeline_value(),
|
||||
animations: document.animations().sets.clone(),
|
||||
node_to_image_animation_map: document
|
||||
.image_animation_manager_mut()
|
||||
.take_image_animate_set(),
|
||||
theme: self.theme.get(),
|
||||
};
|
||||
|
||||
|
@ -2017,7 +2020,9 @@ impl Window {
|
|||
if !size_messages.is_empty() {
|
||||
self.send_to_constellation(ScriptMsg::IFrameSizes(size_messages));
|
||||
}
|
||||
|
||||
document
|
||||
.image_animation_manager_mut()
|
||||
.restore_image_animate_set(results.node_to_image_animation_map);
|
||||
document.update_animations_post_reflow();
|
||||
self.update_constellation_epoch();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue