commit | e963f7c264a1db6b737ed69137add5462cb7a366 | [log] [tgz] |
---|---|---|
author | Anders Hartvoll Ruud <andruud@chromium.org> | Mon Nov 18 14:07:59 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Nov 18 14:07:59 2024 |
tree | 385c88b0377687bd6822eb647d1c9628faae6151 | |
parent | cba2c1853926349862776463bb59638e3da8dd3b [diff] |
[@scope] Bucket :scope as <scope-start> when possible This CL implements the same bucketing optimization for :scope as we do for :is()/:where(): whenever we have a <scope-start> with exactly one selector, we bucket :scope as that selector instead. This optimization arguably becomes slightly more relevant with CL:6020075, since that CL makes it more ergonomic to apply declarations directly to the scoping root (effectively matching like :where(:scope)). Rename HasOneSelector to IsSingleComplexSelector, to make it more clear that we're interested in the number of complex selectors (vs. simple selectors). This is especially relevant for the new static version of this function. Bug: 351045927 Change-Id: I7c25358e4a448cda15c89d44422b558f1900ae02 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6028416 Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org> Reviewed-by: Steinar H Gunderson <sesse@chromium.org> Cr-Commit-Position: refs/heads/main@{#1384301}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.