Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[StyleBuilder] Remove ComputedStyle from CSSToLengthConversionData
CSSToLengthConversionData currently does a const_cast of an incoming ComputedStyle in order to set certain flags on that ComputedStyle. This is bad, because CSSToLengthConversionData is used in several situations outside of style recalc, i.e. in situations where it's too late to modify the ComputedStyle. It's also a major hurdle for the StyleBuilder project, because just replacing the ComputedStyle pointer with a ComputedStyleBuilder pointer isn't possible: we don't have a ComputedStyleBuilder at all outside of style resolution. This CL addresses this by propagating the unit flags to CSSToLengthConversionData's call site. Bug: 1377295 Change-Id: I9d162aebf813418c15a494a1d18581b75272aa10 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4107634 Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org> Cr-Commit-Position: refs/heads/main@{#1084547}
- Loading branch information
Showing
16 changed files
with
257 additions
and
101 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
Oops, something went wrong.