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

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

Issue 2754783003: Remove two Gradient setters (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 d79ca19dd40aa535de55ed6a62f56ac28d71a5aa..3c525aad8d7afe0ded1a0bbf2f5435b1c6baf404 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceLinearGradient.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceLinearGradient.cpp
@@ -52,10 +52,10 @@ FloatPoint LayoutSVGResourceLinearGradient::endPoint(
PassRefPtr<Gradient> LayoutSVGResourceLinearGradient::buildGradient() const {
const LinearGradientAttributes& attributes = this->attributes();
- RefPtr<Gradient> gradient =
- Gradient::create(startPoint(attributes), endPoint(attributes));
- gradient->setSpreadMethod(
- platformSpreadMethodFromSVGType(attributes.spreadMethod()));
+ RefPtr<Gradient> gradient = Gradient::create(
+ startPoint(attributes), endPoint(attributes),
+ platformSpreadMethodFromSVGType(attributes.spreadMethod()),
+ Gradient::ColorInterpolation::Unpremultiplied);
gradient->addColorStops(attributes.stops());
return gradient.release();
}

Powered by Google App Engine
This is Rietveld 408576698