mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Properly track whether <angle> or <time> values came from calc() expressions.
This commit is contained in:
parent
c654c05884
commit
fc72f096a0
10 changed files with 281 additions and 90 deletions
|
@ -343,7 +343,7 @@ impl PropertyAnimation {
|
|||
|
||||
#[inline]
|
||||
fn does_animate(&self) -> bool {
|
||||
self.property.does_animate() && self.duration != Time(0.0)
|
||||
self.property.does_animate() && self.duration.seconds() != 0.0
|
||||
}
|
||||
|
||||
/// Whether this animation has the same end value as another one.
|
||||
|
@ -681,7 +681,7 @@ pub fn update_style_for_animation(context: &SharedStyleContext,
|
|||
transition_property, name);
|
||||
match PropertyAnimation::from_transition_property(*transition_property,
|
||||
timing_function,
|
||||
Time(relative_duration as f32),
|
||||
Time::from_seconds(relative_duration as f32),
|
||||
&from_style,
|
||||
&target_style) {
|
||||
Some(property_animation) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue