servo: Merge #13917 - Remove usage of 'keyword_list' (from Wafflespeanut:keywords); r=Manishearth
<!-- Please describe your changes on the following line: --> We're using `keyword_list` to generate code for some of the animation properties. This could be achieved with `single_keyword` (passing `vector=True`). --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach build-geckolib` does not report any errors <!-- Either: --> - [x] These changes do not require tests because it's a cleanup <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> r? @emilio Source-Repo: https://github.com/servo/servo Source-Revision: b3ad71353bf264770bf0b3a87b32d86928eb09d4
This commit is contained in:
@@ -12,9 +12,9 @@ use euclid::point::Point2D;
|
||||
use keyframes::{KeyframesStep, KeyframesStepValue};
|
||||
use properties::{self, CascadeFlags, ComputedValues, Importance};
|
||||
use properties::animated_properties::{AnimatedProperty, TransitionProperty};
|
||||
use properties::longhands::animation_direction::computed_value::AnimationDirection;
|
||||
use properties::longhands::animation_direction::computed_value::single_value::T as AnimationDirection;
|
||||
use properties::longhands::animation_iteration_count::computed_value::AnimationIterationCount;
|
||||
use properties::longhands::animation_play_state::computed_value::AnimationPlayState;
|
||||
use properties::longhands::animation_play_state::computed_value::single_value::T as AnimationPlayState;
|
||||
use properties::longhands::transition_timing_function::computed_value::StartEnd;
|
||||
use properties::longhands::transition_timing_function::computed_value::TransitionTimingFunction;
|
||||
use std::sync::Arc;
|
||||
@@ -425,7 +425,7 @@ pub fn maybe_start_animations(context: &SharedStyleContext,
|
||||
continue
|
||||
}
|
||||
|
||||
if let Some(ref anim) = context.stylist.animations().get(&name) {
|
||||
if let Some(ref anim) = context.stylist.animations().get(&name.0) {
|
||||
debug!("maybe_start_animations: animation {} found", name);
|
||||
|
||||
// If this animation doesn't have any keyframe, we can just continue
|
||||
@@ -461,7 +461,7 @@ pub fn maybe_start_animations(context: &SharedStyleContext,
|
||||
|
||||
|
||||
new_animations_sender
|
||||
.send(Animation::Keyframes(node, name.clone(), KeyframesAnimationState {
|
||||
.send(Animation::Keyframes(node, name.0.clone(), KeyframesAnimationState {
|
||||
started_at: animation_start,
|
||||
duration: duration as f64,
|
||||
delay: delay as f64,
|
||||
@@ -540,7 +540,7 @@ pub fn update_style_for_animation(context: &SharedStyleContext,
|
||||
|
||||
let maybe_index = style.get_box()
|
||||
.animation_name_iter()
|
||||
.position(|animation_name| *name == animation_name);
|
||||
.position(|animation_name| *name == animation_name.0);
|
||||
|
||||
let index = match maybe_index {
|
||||
Some(index) => index,
|
||||
|
||||
Reference in New Issue
Block a user