mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Use animation values that have been processed during animation-only restyle for normal restyle.
This commit is contained in:
parent
35e0e3aa11
commit
4935d972e5
7 changed files with 76 additions and 47 deletions
|
@ -57,7 +57,7 @@ use gecko_bindings::structs::NODE_IS_NATIVE_ANONYMOUS;
|
|||
use gecko_bindings::sugar::ownership::HasArcFFI;
|
||||
use logical_geometry::WritingMode;
|
||||
use media_queries::Device;
|
||||
use properties::{AnimationRules, ComputedValues, parse_style_attribute};
|
||||
use properties::{ComputedValues, parse_style_attribute};
|
||||
use properties::{Importance, PropertyDeclaration, PropertyDeclarationBlock};
|
||||
use properties::animated_properties::{AnimationValue, AnimationValueMap, TransitionProperty};
|
||||
use properties::style_structs::Font;
|
||||
|
@ -613,11 +613,6 @@ impl<'le> TElement for GeckoElement<'le> {
|
|||
declarations.map(|s| s.as_arc_opt()).unwrap_or(None)
|
||||
}
|
||||
|
||||
fn get_animation_rules(&self) -> AnimationRules {
|
||||
AnimationRules(self.get_animation_rule(),
|
||||
self.get_transition_rule())
|
||||
}
|
||||
|
||||
fn get_animation_rule_by_cascade(&self, cascade_level: ServoCascadeLevel)
|
||||
-> Option<Arc<Locked<PropertyDeclarationBlock>>> {
|
||||
match cascade_level {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue