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

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLFormattingElementList.cpp

Issue 2583233002: Migrate WTF::Vector::append() to ::push_back() [part 7 of N] (Closed)
Patch Set: Created 4 years 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 2fcba8b114d3f20a9baf6395e7b9fe65a1fd55ee..7df9ed04b130066d969054a21427ca5d2d81eca8 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLFormattingElementList.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLFormattingElementList.cpp
@@ -92,7 +92,7 @@ void HTMLFormattingElementList::swapTo(Element* oldElement,
void HTMLFormattingElementList::append(HTMLStackItem* item) {
ensureNoahsArkCondition(item);
- m_entries.append(item);
+ m_entries.push_back(item);
}
void HTMLFormattingElementList::remove(Element* element) {
@@ -102,7 +102,7 @@ void HTMLFormattingElementList::remove(Element* element) {
}
void HTMLFormattingElementList::appendMarker() {
- m_entries.append(Entry::MarkerEntry);
+ m_entries.push_back(Entry::MarkerEntry);
}
void HTMLFormattingElementList::clearToLastMarker() {
@@ -143,7 +143,7 @@ void HTMLFormattingElementList::tryToEnsureNoahsArkConditionQuickly(
if (candidate->attributes().size() != newItemAttributeCount)
continue;
- candidates.append(candidate);
+ candidates.push_back(candidate);
}
// There's room for the new element in the ark. There's no need to copy out
@@ -178,7 +178,7 @@ void HTMLFormattingElementList::ensureNoahsArkCondition(
candidate->getAttributeItem(attribute.name());
if (candidateAttribute &&
candidateAttribute->value() == attribute.value())
- remainingCandidates.append(candidate);
+ remainingCandidates.push_back(candidate);
}
if (remainingCandidates.size() < kNoahsArkCapacity)

Powered by Google App Engine
This is Rietveld 408576698