mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Add selectors with an id in them to the list of revalidation selectors.
This commit is contained in:
parent
98f95a32da
commit
d031b5badb
4 changed files with 82 additions and 1 deletions
|
@ -20,6 +20,8 @@ use stylearc::Arc;
|
|||
#[inline]
|
||||
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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue