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

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLFormattingElementList.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/html/parser/HTMLFormattingElementList.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLFormattingElementList.cpp b/third_party/WebKit/Source/core/html/parser/HTMLFormattingElementList.cpp
index 4ffc239b0e63943c606790f382b8d87e6eb67a84..0671989973032c5a79d78ca0cceb7ebda79af763 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLFormattingElementList.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLFormattingElementList.cpp
@@ -98,7 +98,7 @@ void HTMLFormattingElementList::append(HTMLStackItem* item) {
void HTMLFormattingElementList::remove(Element* element) {
size_t index = m_entries.reverseFind(element);
if (index != kNotFound)
- m_entries.remove(index);
+ m_entries.erase(index);
}
void HTMLFormattingElementList::appendMarker() {

Powered by Google App Engine
This is Rietveld 408576698