style: Trivially reformat a few TElement declarations.

This commit is contained in:
Emilio Cobos Álvarez 2017-09-15 10:07:39 +02:00
parent 564fb5c53b
commit d799dd95eb
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -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 /// we can perform the more thoroughgoing check, needs_transitions_update, to further
/// reduce the possibility of false positives. /// reduce the possibility of false positives.
#[cfg(feature = "gecko")] #[cfg(feature = "gecko")]
fn might_need_transitions_update(&self, fn might_need_transitions_update(
&self,
old_values: Option<&ComputedValues>, old_values: Option<&ComputedValues>,
new_values: &ComputedValues) new_values: &ComputedValues
-> bool; ) -> bool;
/// Returns true if one of the transitions needs to be updated on this element. We check all /// 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. /// 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 /// This method should only be called if might_needs_transitions_update returns true when
/// passed the same parameters. /// passed the same parameters.
#[cfg(feature = "gecko")] #[cfg(feature = "gecko")]
fn needs_transitions_update(&self, fn needs_transitions_update(
&self,
before_change_style: &ComputedValues, before_change_style: &ComputedValues,
after_change_style: &ComputedValues) after_change_style: &ComputedValues
-> bool; ) -> bool;
/// Returns true if we need to update transitions for the specified property on this element. /// Returns true if we need to update transitions for the specified property on this element.
#[cfg(feature = "gecko")] #[cfg(feature = "gecko")]
fn needs_transitions_update_per_property(&self, fn needs_transitions_update_per_property(
&self,
property: &TransitionProperty, property: &TransitionProperty,
combined_duration: f32, combined_duration: f32,
before_change_style: &ComputedValues, before_change_style: &ComputedValues,
after_change_style: &ComputedValues, after_change_style: &ComputedValues,
existing_transitions: &HashMap<TransitionProperty, existing_transitions: &HashMap<TransitionProperty, Arc<AnimationValue>>
Arc<AnimationValue>>) ) -> bool;
-> bool;
/// Returns the value of the `xml:lang=""` attribute (or, if appropriate, /// Returns the value of the `xml:lang=""` attribute (or, if appropriate,
/// the `lang=""` attribute) on this element. /// 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 /// of the `xml:lang=""` or `lang=""` attribute to use in place of
/// looking at the element and its ancestors. (This argument is used /// looking at the element and its ancestors. (This argument is used
/// to implement matching of `:lang()` against snapshots.) /// to implement matching of `:lang()` against snapshots.)
fn match_element_lang(&self, fn match_element_lang(
&self,
override_lang: Option<Option<AttrValue>>, override_lang: Option<Option<AttrValue>>,
value: &PseudoClassStringArg) value: &PseudoClassStringArg
-> bool; ) -> bool;
} }
/// TNode and TElement aren't Send because we want to be careful and explicit /// TNode and TElement aren't Send because we want to be careful and explicit