diff --git a/components/style/dom.rs b/components/style/dom.rs index 6a07c84cdbe..8b0988145d8 100644 --- a/components/style/dom.rs +++ b/components/style/dom.rs @@ -685,31 +685,33 @@ pub trait TElement : Eq + PartialEq + Debug + Hash + Sized + Copy + Clone + /// we can perform the more thoroughgoing check, needs_transitions_update, to further /// reduce the possibility of false positives. #[cfg(feature = "gecko")] - fn might_need_transitions_update(&self, - old_values: Option<&ComputedValues>, - new_values: &ComputedValues) - -> bool; + fn might_need_transitions_update( + &self, + old_values: Option<&ComputedValues>, + new_values: &ComputedValues + ) -> bool; /// Returns true if one of the transitions needs to be updated on this element. We check all /// the transition properties to make sure that updating transitions is necessary. /// This method should only be called if might_needs_transitions_update returns true when /// passed the same parameters. #[cfg(feature = "gecko")] - fn needs_transitions_update(&self, - before_change_style: &ComputedValues, - after_change_style: &ComputedValues) - -> bool; + fn needs_transitions_update( + &self, + before_change_style: &ComputedValues, + after_change_style: &ComputedValues + ) -> bool; /// Returns true if we need to update transitions for the specified property on this element. #[cfg(feature = "gecko")] - fn needs_transitions_update_per_property(&self, - property: &TransitionProperty, - combined_duration: f32, - before_change_style: &ComputedValues, - after_change_style: &ComputedValues, - existing_transitions: &HashMap>) - -> bool; + fn needs_transitions_update_per_property( + &self, + property: &TransitionProperty, + combined_duration: f32, + before_change_style: &ComputedValues, + after_change_style: &ComputedValues, + existing_transitions: &HashMap> + ) -> bool; /// Returns the value of the `xml:lang=""` attribute (or, if appropriate, /// the `lang=""` attribute) on this element. @@ -720,10 +722,11 @@ pub trait TElement : Eq + PartialEq + Debug + Hash + Sized + Copy + Clone + /// of the `xml:lang=""` or `lang=""` attribute to use in place of /// looking at the element and its ancestors. (This argument is used /// to implement matching of `:lang()` against snapshots.) - fn match_element_lang(&self, - override_lang: Option>, - value: &PseudoClassStringArg) - -> bool; + fn match_element_lang( + &self, + override_lang: Option>, + value: &PseudoClassStringArg + ) -> bool; } /// TNode and TElement aren't Send because we want to be careful and explicit