style: Reformat a few GeckoElement methods.

This commit is contained in:
Emilio Cobos Álvarez 2017-09-15 10:08:22 +02:00
parent 91ae73a9bd
commit 33fa32ab25
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -1484,11 +1484,11 @@ impl<'le> TElement for GeckoElement<'le> {
} }
} }
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 {
// Gecko supports :lang() from CSS Selectors 3, which only accepts a // Gecko supports :lang() from CSS Selectors 3, which only accepts a
// single language tag, and which performs simple dash-prefix matching // single language tag, and which performs simple dash-prefix matching
// on it. // on it.
@ -1722,11 +1722,12 @@ impl<'le> ::selectors::Element for GeckoElement<'le> {
None None
} }
fn attr_matches(&self, fn attr_matches(
ns: &NamespaceConstraint<&Namespace>, &self,
local_name: &Atom, ns: &NamespaceConstraint<&Namespace>,
operation: &AttrSelectorOperation<&Atom>) local_name: &Atom,
-> bool { operation: &AttrSelectorOperation<&Atom>
) -> bool {
unsafe { unsafe {
match *operation { match *operation {
AttrSelectorOperation::Exists => { AttrSelectorOperation::Exists => {