-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consider :hover compounding conditions for :has() fast rejection
For pseudo classes whose status can be changed frequently, such as :hover, using compounding condition helps performance by increasing accuracy. This CL adds additional identifier collecting logic to use :hover compounding conditions for :has() fast rejection by referring the WebKit change : https://commits.webkit.org/245283@main For each primitive identifier hash (tag-name, id, class-value, attribute-name) from an element or a simple selector, if the element is hovered or the simple selector is compounded with :hover, get additional hash by multiplying a salt value for the :hover compounding condition. Bug: 1341893 Change-Id: Ic4242abfcd403734721e6ea6f86f72f04b267e62 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3750341 Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Byungwoo Lee <blee@igalia.com> Cr-Commit-Position: refs/heads/main@{#1035104}
- Loading branch information
Showing
3 changed files
with
104 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters