aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/servo/selector_parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/style/servo/selector_parser.rs')
-rw-r--r--components/style/servo/selector_parser.rs7
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))