style: Allow caching elements with non-common style affecting attributes.

We have already that check in place, see
`match_same_non_common_style_affecting_attribute_selectors`.
This commit is contained in:
Emilio Cobos Álvarez 2017-01-07 01:48:50 +01:00
parent ac8547416d
commit cf65f09794
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -36,7 +36,6 @@ fn relations_are_shareable(relations: &StyleRelations) -> bool {
use selectors::matching::*; use selectors::matching::*;
!relations.intersects(AFFECTED_BY_ID_SELECTOR | !relations.intersects(AFFECTED_BY_ID_SELECTOR |
AFFECTED_BY_PSEUDO_ELEMENTS | AFFECTED_BY_STATE | AFFECTED_BY_PSEUDO_ELEMENTS | AFFECTED_BY_STATE |
AFFECTED_BY_NON_COMMON_STYLE_AFFECTING_ATTRIBUTE_SELECTOR |
AFFECTED_BY_STYLE_ATTRIBUTE | AFFECTED_BY_STYLE_ATTRIBUTE |
AFFECTED_BY_PRESENTATIONAL_HINTS) AFFECTED_BY_PRESENTATIONAL_HINTS)
} }