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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceGradient.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/LayoutSVGResourceGradient.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceGradient.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceGradient.cpp
index de3646c58a3195f7f77d256807fc5f6c77a3b426..7f917dbfc86c1f1ecd10c3446d8a4894e22c57d9 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceGradient.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceGradient.cpp
@@ -119,13 +119,6 @@ bool LayoutSVGResourceGradient::isChildAllowed(LayoutObject* child,
return toLayoutSVGResourceContainer(child)->isSVGPaintServer();
}
-void LayoutSVGResourceGradient::addStops(
- Gradient& gradient,
- const Vector<Gradient::ColorStop>& stops) const {
- for (const auto& stop : stops)
- gradient.addColorStop(stop);
-}
-
GradientSpreadMethod LayoutSVGResourceGradient::platformSpreadMethodFromSVGType(
SVGSpreadMethodType method) {
switch (method) {

Powered by Google App Engine
This is Rietveld 408576698