mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Allow inserting elements into the style sharing cache even when they are affected by id selectors.
This commit is contained in:
parent
ad1309552d
commit
4c320a9c75
2 changed files with 4 additions and 8 deletions
|
@ -23,8 +23,7 @@ pub fn relations_are_shareable(relations: &StyleRelations) -> bool {
|
|||
use selectors::matching::*;
|
||||
// If we start sharing things that are AFFECTED_BY_PSEUDO_ELEMENTS, we need
|
||||
// to track revalidation selectors on a per-pseudo-element basis.
|
||||
!relations.intersects(AFFECTED_BY_ID_SELECTOR |
|
||||
AFFECTED_BY_PSEUDO_ELEMENTS)
|
||||
!relations.intersects(AFFECTED_BY_PSEUDO_ELEMENTS)
|
||||
}
|
||||
|
||||
/// Whether, given two elements, they have pointer-equal computed values.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue