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

Unified Diff: third_party/WebKit/Source/core/html/parser/CompactHTMLToken.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/CompactHTMLToken.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/CompactHTMLToken.cpp b/third_party/WebKit/Source/core/html/parser/CompactHTMLToken.cpp
index c920a7ba8aa2bf88d70ac5469169b86edbba4fda..a797db4e7dc370607acf005575b05334fb74a20e 100644
--- a/third_party/WebKit/Source/core/html/parser/CompactHTMLToken.cpp
+++ b/third_party/WebKit/Source/core/html/parser/CompactHTMLToken.cpp
@@ -55,7 +55,7 @@ CompactHTMLToken::CompactHTMLToken(const HTMLToken* token,
// There is only 1 DOCTYPE token per document, so to avoid increasing the
// size of CompactHTMLToken, we just use the m_attributes vector.
- m_attributes.append(Attribute(
+ m_attributes.push_back(Attribute(
attemptStaticStringCreation(token->publicIdentifier(), Likely8Bit),
String(token->systemIdentifier())));
m_doctypeForcesQuirks = token->forceQuirks();
@@ -66,7 +66,7 @@ CompactHTMLToken::CompactHTMLToken(const HTMLToken* token,
case HTMLToken::StartTag:
m_attributes.reserveInitialCapacity(token->attributes().size());
for (const HTMLToken::Attribute& attribute : token->attributes())
- m_attributes.append(
+ m_attributes.push_back(
Attribute(attribute.nameAttemptStaticStringCreation(),
attribute.value8BitIfNecessary()));
// Fall through!

Powered by Google App Engine
This is Rietveld 408576698