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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSParserImpl.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/parser/CSSParserImpl.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp b/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp
index a82c6e54ae458a1fa0d1a073061914984b497909..59ce1f25cb66445ee315369d1a5bff2d112a1e76 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp
@@ -188,7 +188,7 @@ bool CSSParserImpl::parseDeclarationList(MutableStylePropertySet* declaration,
filterProperties(false, parser.m_parsedProperties, results, unusedEntries,
seenProperties, seenCustomProperties);
if (unusedEntries)
- results.remove(0, unusedEntries);
+ results.erase(0, unusedEntries);
return declaration->addParsedProperties(results);
}
@@ -316,7 +316,7 @@ ImmutableStylePropertySet* CSSParserImpl::parseCustomPropertySet(
// a different StyleRule type
for (size_t i = parser.m_parsedProperties.size(); i--;) {
if (parser.m_parsedProperties[i].id() == CSSPropertyApplyAtRule)
- parser.m_parsedProperties.remove(i);
+ parser.m_parsedProperties.erase(i);
}
return createStylePropertySet(parser.m_parsedProperties, HTMLStandardMode);

Powered by Google App Engine
This is Rietveld 408576698