diff options
author | chansuke <chansuke@georepublic.de> | 2018-09-09 16:24:45 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-09-09 16:24:45 +0200 |
commit | 8dab4d659aae9fc4954e3a346bd663f60485de31 (patch) | |
tree | 880e57979ded53f072653829a868c86d5075e7ef /components/style/servo/selector_parser.rs | |
parent | 31fc6cd565479144b9b0c2d3fff09caad8089df7 (diff) | |
download | servo-8dab4d659aae9fc4954e3a346bd663f60485de31.tar.gz servo-8dab4d659aae9fc4954e3a346bd663f60485de31.zip |
Format style component.
Diffstat (limited to 'components/style/servo/selector_parser.rs')
-rw-r--r-- | components/style/servo/selector_parser.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/components/style/servo/selector_parser.rs b/components/style/servo/selector_parser.rs index c608cd8488d..7c1e082022d 100644 --- a/components/style/servo/selector_parser.rs +++ b/components/style/servo/selector_parser.rs @@ -137,7 +137,9 @@ impl PseudoElement { /// Whether this is an unknown ::-webkit- pseudo-element. #[inline] - pub fn is_unknown_webkit_pseudo_element(&self) -> bool { false } + pub fn is_unknown_webkit_pseudo_element(&self) -> bool { + false + } /// Whether this pseudo-element is the ::before pseudo. #[inline] @@ -766,7 +768,8 @@ impl ServoElementSnapshot { operation: &AttrSelectorOperation<&String>, ) -> bool { match *ns { - NamespaceConstraint::Specific(ref ns) => self.get_attr(ns, local_name) + NamespaceConstraint::Specific(ref ns) => self + .get_attr(ns, local_name) .map_or(false, |value| value.eval_selector(operation)), NamespaceConstraint::Any => { self.any_attr_ignore_ns(local_name, |value| value.eval_selector(operation)) |