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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceLinearGradient.cpp

Issue 2749583002: Add Gradient::addColorStops method (Closed)
Patch Set: Created 3 years, 9 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/LayoutSVGResourceLinearGradient.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceLinearGradient.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceLinearGradient.cpp
index 06958fc6798bcc16df6d6c57d3b6989d4ed9acbd..7d231501329320746263d5773f2bf4beb0ed5e99 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceLinearGradient.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceLinearGradient.cpp
@@ -56,7 +56,7 @@ PassRefPtr<Gradient> LayoutSVGResourceLinearGradient::buildGradient() const {
Gradient::create(startPoint(attributes), endPoint(attributes));
gradient->setSpreadMethod(
platformSpreadMethodFromSVGType(attributes.spreadMethod()));
- addStops(*gradient, attributes.stops());
+ gradient->addColorStops(attributes.stops());
return gradient.release();
}

Powered by Google App Engine
This is Rietveld 408576698