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

Unified Diff: third_party/WebKit/Source/core/css/CSSGradientValue.cpp

Issue 2776203002: Migrate WTF::Vector::remove() to ::erase() (Closed)
Patch Set: rebase, repatch VectorTest 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/css/CSSGradientValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSGradientValue.cpp b/third_party/WebKit/Source/core/css/CSSGradientValue.cpp
index 1ea56255e1633f4a5f5ad9a4bb33f9a085616643..a9b9db15dcd57ee9ad61be1be86f1cd3b8c3b125 100644
--- a/third_party/WebKit/Source/core/css/CSSGradientValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSGradientValue.cpp
@@ -190,7 +190,7 @@ static void replaceColorHintsWithColorStops(
ASSERT(offsetLeft <= offset && offset <= offsetRight);
if (WebCoreFloatNearlyEqual(leftDist, rightDist)) {
- stops.remove(x);
+ stops.erase(x);
--indexOffset;
continue;
}
@@ -231,7 +231,7 @@ static void replaceColorHintsWithColorStops(
}
// Replace the color hint with the new color stops.
- stops.remove(x);
+ stops.erase(x);
stops.insert(x, newStops, 9);
indexOffset += 8;
}
« no previous file with comments | « third_party/WebKit/Source/core/clipboard/DataObject.cpp ('k') | third_party/WebKit/Source/core/css/CSSGroupingRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698