DescriptionReduce LayoutSVGResource*Gradient building dependency on GradientData
The buildGradient() method can just create and return a Gradient instead
of populating the GradientData struct it's being passed.
Also make calculateGradientTransform() use the return value rather than
an out variable, and make it const qualified. Make
platformSpreadMethodFromSVGType static and use Traversal<> sugar in
SVGGradientElement::buildStops.
BUG=614368
Committed: https://crrev.com/aaa44070561b21e6ea2d9ae2acd2b0676c5b853e
Cr-Commit-Position: refs/heads/master@{#397763}
Patch Set 1 #Messages
Total messages: 10 (5 generated)
|