-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework loading and computed value handling for image-set()
To avoid having <image> loading code spread out in multiple places, move the <image> selection and resolving for image-set() from the CSSValue to the StyleImageLoader helper class in element_style_resources.cc. This means there's only a single point in the code that handles each type of <image>. Similarly for the (faux) computed value side of things, move CSSImageSetValue::ComputedCSSValue into the ComputedCSSValueBuilder used for StylePendingImage. Move that helper out of anonymity and rename it to StyleImageComputedCSSValueBuilder. This also means that the plumbing of state in the StyleImageLoader helper class can be simplified a little bit. The image-set() option parser is changed to not allow certain functions at parse-time instead of rejecting them at computed value-time. Bug: 1369996 Change-Id: I26dfefff0906f6903ba85b564dd0cd4f63789a38 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4942358 Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/main@{#1211401}
- Loading branch information
Fredrik Söderquist
authored and
Chromium LUCI CQ
committed
Oct 18, 2023
1 parent
c8023cf
commit efaf606
Showing
12 changed files
with
212 additions
and
224 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.