Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LibWeb: Use fast CSS selector matching in default matches() code path #3431

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kalenikaliaksandr
Copy link
Member

Before this change, checking if fast selector matching could be used was only enabled in style recalculation and hover invalidation. With this change it's enabled for all callers of SelectorEngine::matches() by default. This way APIs like Element::matches() and Document::querySelector() could take advantage of this optimization.

@kalenikaliaksandr kalenikaliaksandr force-pushed the enable-fast-selector-match-in-default-code-path branch from 5b07833 to 3c769bb Compare February 2, 2025 20:37
Before this change, checking if fast selector matching could be used was
only enabled in style recalculation and hover invalidation. With this
change it's enabled for all callers of SelectorEngine::matches() by
default. This way APIs like `Element.matches()` and `querySelector()`
could take advantage of this optimization.
@kalenikaliaksandr kalenikaliaksandr force-pushed the enable-fast-selector-match-in-default-code-path branch from 3c769bb to f647daa Compare February 2, 2025 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant