Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceRadialGradient.h

Issue 2031053004: Reduce LayoutSVGResource*Gradient building dependency on GradientData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceRadialGradient.h
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceRadialGradient.h b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceRadialGradient.h
index 58fc5bd7df363f3a73733fd435701747ffa11b22..a400f5071a5c067acd33f5d23252ef042466f24e 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceRadialGradient.h
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceRadialGradient.h
@@ -39,9 +39,9 @@ public:
LayoutSVGResourceType resourceType() const override { return s_resourceType; }
SVGUnitTypes::SVGUnitType gradientUnits() const override { return attributes().gradientUnits(); }
- void calculateGradientTransform(AffineTransform& transform) override { transform = attributes().gradientTransform(); }
+ AffineTransform calculateGradientTransform() const override { return attributes().gradientTransform(); }
bool collectGradientAttributes(SVGGradientElement*) override;
- void buildGradient(GradientData*) const override;
+ PassRefPtr<Gradient> buildGradient() const override;
FloatPoint centerPoint(const RadialGradientAttributes&) const;
FloatPoint focalPoint(const RadialGradientAttributes&) const;

Powered by Google App Engine
This is Rietveld 408576698