mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Skip rule node which contains only inherited properties for rule cache.
This commit is contained in:
parent
782e3fe4e4
commit
3593392788
6 changed files with 75 additions and 7 deletions
|
@ -283,6 +283,12 @@ impl PropertyDeclarationBlock {
|
|||
self.longhands.contains(id)
|
||||
}
|
||||
|
||||
/// Returns whether this block contains any reset longhand.
|
||||
#[inline]
|
||||
pub fn contains_any_reset(&self) -> bool {
|
||||
self.longhands.contains_any_reset()
|
||||
}
|
||||
|
||||
/// Get a declaration for a given property.
|
||||
///
|
||||
/// NOTE: This is linear time.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue