-
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.
Clean up SVG gradient set up/align with pattern set up
Replace CollectGradientAttributes() with EnsureAttributes() that returns a reference to the base class GradientAttributes. Drop the GradientUnits() and CalculateGradientTransform() functions, because both implementation are identical and the data can be accessed via the attributes object. Also switch to have LayoutSVGResourceGradient::BuildGradientData() add the stops rather than the BuildGradient() overrides. (The stops are also in the base attribute class.) Bug: 1414383 Change-Id: I661d6b63ccff62650371dd51fa5810cc45cbe9c5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4236269 Reviewed-by: Philip Rogers <pdr@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/main@{#1103821}
- Loading branch information
Fredrik Söderquist
authored and
Chromium LUCI CQ
committed
Feb 10, 2023
1 parent
2198fb9
commit a4bbdc5
Showing
7 changed files
with
44 additions
and
56 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