mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Reformat with rustfmt 1.4.36-nightly (7de6968 2021-02-07)
This commit is contained in:
parent
2dd3c05479
commit
479a42a980
6 changed files with 31 additions and 14 deletions
|
@ -198,11 +198,12 @@ impl NonTSPseudoClass {
|
|||
/// revalidation.
|
||||
pub fn needs_cache_revalidation(&self) -> bool {
|
||||
self.state_flag().is_empty() &&
|
||||
!matches!(*self,
|
||||
// :-moz-any is handled by the revalidation visitor walking
|
||||
// the things inside it; it does not need to cause
|
||||
// revalidation on its own.
|
||||
NonTSPseudoClass::MozAny(_) |
|
||||
!matches!(
|
||||
*self,
|
||||
// :-moz-any is handled by the revalidation visitor walking
|
||||
// the things inside it; it does not need to cause
|
||||
// revalidation on its own.
|
||||
NonTSPseudoClass::MozAny(_) |
|
||||
// :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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue