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

Unified Diff: Source/core/layout/svg/LayoutSVGResourceGradient.cpp

Issue 1062283002: Use C++11 range-based loop for core/layout (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix it naming Created 5 years, 8 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: 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
« no previous file with comments | « Source/core/layout/svg/LayoutSVGResourceContainer.cpp ('k') | Source/core/layout/svg/SVGResourcesCycleSolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698