style: Trivially reformat a few TElement declarations.

This commit is contained in:
Emilio Cobos Álvarez 2017-09-15 10:07:39 +02:00
parent 49f753523a
commit 91ae73a9bd
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(
old_values: Option<&ComputedValues>, &self,
new_values: &ComputedValues) old_values: Option<&ComputedValues>,
-> bool; new_values: &ComputedValues
) -> 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(
before_change_style: &ComputedValues, &self,
after_change_style: &ComputedValues) before_change_style: &ComputedValues,
-> bool; after_change_style: &ComputedValues
) -> 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(
property: &TransitionProperty, &self,
combined_duration: f32, property: &TransitionProperty,
before_change_style: &ComputedValues, combined_duration: f32,
after_change_style: &ComputedValues, before_change_style: &ComputedValues,
existing_transitions: &HashMap<TransitionProperty, after_change_style: &ComputedValues,
Arc<AnimationValue>>) existing_transitions: &HashMap<TransitionProperty, 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(
override_lang: Option<Option<AttrValue>>, &self,
value: &PseudoClassStringArg) override_lang: Option<Option<AttrValue>>,
-> bool; value: &PseudoClassStringArg
) -> 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