mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -864,7 +864,8 @@ impl StrongRuleNode {
|
|||
WeakRuleNode::from_ptr(self.ptr())
|
||||
}
|
||||
|
||||
fn parent(&self) -> Option<&StrongRuleNode> {
|
||||
/// Get the parent rule node of this rule node.
|
||||
pub fn parent(&self) -> Option<&StrongRuleNode> {
|
||||
self.get().parent.as_ref()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue