commit | 9de4344b856bce036008a4ca3287e791f4097d3e | [log] [tgz] |
---|---|---|
author | Anders Hartvoll Ruud <andruud@chromium.org> | Mon Mar 20 11:20:28 2023 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Mar 20 11:20:28 2023 |
tree | 57fac4177ea67e286997030b18abdceb6cbcac5e | |
parent | bb4ff761986adfa632665ae98697a428d0f04792 [diff] |
[@scope] Enable nesting features within @scope's body This CL passes a parent rule and accompanying CSSNestingType to the ConsumeRuleList call which handles @scope's body. This has the following effects: - A :scope descendant compound is implicitly inserted if the selector is not scope-containing. - The parent selector (&) now refers to the <scope-start> selector list. - Relative selectors are enabled. The code to resize the arena in ConsumeStyleRule must now be detached from whether or not parent_rule_for_nesting is nullptr. This is because we can now enter ConsumeStyleRule with parent_rule_for_nesting!=nullptr without another call to ConsumeStyleRule below us on the stack (via ConsumeScopeRule). Bug: 1280240 Change-Id: Ibe6b1e40e22d535a094b0ec464ae119952b015f5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4272459 Reviewed-by: Steinar H Gunderson <sesse@chromium.org> Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org> Cr-Commit-Position: refs/heads/main@{#1119257}
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.