diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2021-02-26 11:43:25 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2021-02-26 16:44:05 +0100 |
commit | 80dae5bc599be3087c8fc32197bee3896091027e (patch) | |
tree | a552ab87b17daf61af5c4b5a883244e6ba59b1ca /components/style/gecko/selector_parser.rs | |
parent | c4ad61faa51eb12392ea7bd4877930fbdd271b71 (diff) | |
download | servo-80dae5bc599be3087c8fc32197bee3896091027e.tar.gz servo-80dae5bc599be3087c8fc32197bee3896091027e.zip |
Rustfmt.
Diffstat (limited to 'components/style/gecko/selector_parser.rs')
-rw-r--r-- | components/style/gecko/selector_parser.rs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/components/style/gecko/selector_parser.rs b/components/style/gecko/selector_parser.rs index 4e552e439e9..a9083581234 100644 --- a/components/style/gecko/selector_parser.rs +++ b/components/style/gecko/selector_parser.rs @@ -184,12 +184,13 @@ impl NonTSPseudoClass { /// revalidation. pub fn needs_cache_revalidation(&self) -> bool { self.state_flag().is_empty() && - !matches!(*self, - // :dir() depends on state only, but doesn't use state_flag - // because its semantics don't quite match. Nevertheless, it - // doesn't need cache revalidation, because we already compare - // states for elements and candidates. - NonTSPseudoClass::Dir(_) | + !matches!( + *self, + // :dir() depends on state only, but doesn't use state_flag + // because its semantics don't quite match. Nevertheless, it + // doesn't need cache revalidation, because we already compare + // states for elements and candidates. + NonTSPseudoClass::Dir(_) | // :-moz-is-html only depends on the state of the document and // the namespace of the element; the former is invariant // across all the elements involved and the latter is already |