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

Unified Diff: third_party/WebKit/Source/core/editing/EditingStyle.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/editing/EditingStyle.cpp
diff --git a/third_party/WebKit/Source/core/editing/EditingStyle.cpp b/third_party/WebKit/Source/core/editing/EditingStyle.cpp
index b9f9a18c6d1d9ffef8fefaf7ec98ae9bb6be62c8..8bb2bf669d48aa1c4776f6a748bfc344517720ad 100644
--- a/third_party/WebKit/Source/core/editing/EditingStyle.cpp
+++ b/third_party/WebKit/Source/core/editing/EditingStyle.cpp
@@ -104,7 +104,7 @@ static const Vector<CSSPropertyID>& allEditingProperties() {
staticEditingProperties, WTF_ARRAY_LENGTH(staticEditingProperties),
properties);
if (RuntimeEnabledFeatures::css3TextDecorationsEnabled())
- properties.remove(properties.find(CSSPropertyTextDecoration));
+ properties.erase(properties.find(CSSPropertyTextDecoration));
}
return properties;
}
@@ -117,7 +117,7 @@ static const Vector<CSSPropertyID>& inheritableEditingProperties() {
properties);
for (size_t index = 0; index < properties.size();) {
if (!CSSPropertyMetadata::isInheritedProperty(properties[index])) {
- properties.remove(index);
+ properties.erase(index);
continue;
}
++index;

Powered by Google App Engine
This is Rietveld 408576698