Index: Source/core/layout/svg/LayoutSVGResourceGradient.cpp |
diff --git a/Source/core/layout/svg/LayoutSVGResourceGradient.cpp b/Source/core/layout/svg/LayoutSVGResourceGradient.cpp |
index 6a5bc57cc72570665cd8d44395f9bf3be6f9bc8e..e62f1376f976e03acf4654dffed4001fe614ad15 100644 |
--- a/Source/core/layout/svg/LayoutSVGResourceGradient.cpp |
+++ b/Source/core/layout/svg/LayoutSVGResourceGradient.cpp |
@@ -114,9 +114,8 @@ void LayoutSVGResourceGradient::addStops(GradientData* gradientData, const Vecto |
{ |
ASSERT(gradientData->gradient); |
- const Vector<Gradient::ColorStop>::const_iterator end = stops.end(); |
- for (Vector<Gradient::ColorStop>::const_iterator it = stops.begin(); it != end; ++it) |
- gradientData->gradient->addColorStop(*it); |
+ for (const auto& stop : stops) |
+ gradientData->gradient->addColorStop(stop); |
} |
GradientSpreadMethod LayoutSVGResourceGradient::platformSpreadMethodFromSVGType(SVGSpreadMethodType method) const |