Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fold tree scopes into CSSValue and prepare to remove ScopedCSSValue
(See [2] for the full design) We currently support tree-scoped names and references with ScopedCSSValue. However, this only allows us to associate an entire property value with a tree scope. With anchor position, it's possible that we need to deal with a property value whose different parts are associated with different tree scopes (e.g., during a transition, see test cases in the follow up patch [1]). So instead of creating a temporary ScopedCSSValue, we need to actually store tree scopes in CSSValues. See [2] for the full design. This patch lays the foundation of turning from ScopedCSSValue to the new tree-scoped CSSValue: - Add fields into CSSValue to indicate whether it's populated with a tree scope, and add functions to create tree-scope-populated versions of the same value - StyleCascade passes tree-scope-populated CSSValues to StyleBuilder - Also converts the implementation of `list-style-type` property to use the new CSSValue instead of ScopedCSSValue. This doesn't cause any behavior change, and verifies the correctness of the design Follow up patches will convert all properties that are currently using ScopedCSSValue to use the new tree-scope-populated CSSValue, and then remove ScopedCSSValue. [1] crrev.com/c/4185495 [2] crbug.com/1395026#c12 Bug: 1395026 Change-Id: I0dabae063d3901e2605dd8e65692fd1f7d6283f8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4167268 Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/main@{#1096450}
- Loading branch information
1 parent
cd56fa3
commit 87ec449
Showing
9 changed files
with
95 additions
and
26 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
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
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