From 33fa32ab25e3ff47d1a54e74c300452a0068e81f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Fri, 15 Sep 2017 10:08:22 +0200 Subject: [PATCH] style: Reformat a few GeckoElement methods. --- components/style/gecko/wrapper.rs | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/components/style/gecko/wrapper.rs b/components/style/gecko/wrapper.rs index 6c0e666abca..9feb6be4571 100644 --- a/components/style/gecko/wrapper.rs +++ b/components/style/gecko/wrapper.rs @@ -1484,11 +1484,11 @@ impl<'le> TElement for GeckoElement<'le> { } } - fn match_element_lang(&self, - override_lang: Option>, - value: &PseudoClassStringArg) - -> bool - { + fn match_element_lang( + &self, + override_lang: Option>, + value: &PseudoClassStringArg + ) -> bool { // Gecko supports :lang() from CSS Selectors 3, which only accepts a // single language tag, and which performs simple dash-prefix matching // on it. @@ -1722,11 +1722,12 @@ impl<'le> ::selectors::Element for GeckoElement<'le> { None } - fn attr_matches(&self, - ns: &NamespaceConstraint<&Namespace>, - local_name: &Atom, - operation: &AttrSelectorOperation<&Atom>) - -> bool { + fn attr_matches( + &self, + ns: &NamespaceConstraint<&Namespace>, + local_name: &Atom, + operation: &AttrSelectorOperation<&Atom> + ) -> bool { unsafe { match *operation { AttrSelectorOperation::Exists => {