DescriptionStop matching scrollbar pseudo element without a scrollbar.
While matching rules for elements, we mark elements as affected-by-* for
user action pseudo classes like hover. It means that when the element is
later hovered, we need to recalculate style to apply hover styles to
that element.
In general, we currently don't support pseudo classes after pseudo
elements, but for scrollbar pseudo elements we do:
::-webkit-scrollbar:hover {}
However, we do not want such rules to mark the element as affected-by-
hover. The hover style on scrollbar parts get their hover style updated
when hovered regardless of any flags, and making scrollbar pseudo
element rules affect hover updates on the actual elements causes
unnecessary style recalcs.
BUG=716006
Review-Url: https://codereview.chromium.org/2850743003
Cr-Commit-Position: refs/heads/master@{#469309}
Committed: https://chromium.googlesource.com/chromium/src/+/40bdd179053a9b7c6c7eb3a82462a860f981e5d8
Patch Set 1 #Patch Set 2 : Moved AffectedByFocusTest.cpp -> AffectedByPseudoTest.cpp. #Patch Set 3 : Added unit test. #
Messages
Total messages: 23 (11 generated)
|