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

Unified Diff: third_party/WebKit/Source/core/frame/FrameSerializer.cpp

Issue 2585283002: Migrate WTF::Vector::append() to ::push_back() [part 6 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
« no previous file with comments | « third_party/WebKit/Source/core/frame/Frame.cpp ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/FrameSerializer.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameSerializer.cpp b/third_party/WebKit/Source/core/frame/FrameSerializer.cpp
index 3837422d3afcc0ad635615a6129d379f08d9aaa5..61e15e44abf5d4bc27991eab0591103d8134d5d6 100644
--- a/third_party/WebKit/Source/core/frame/FrameSerializer.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameSerializer.cpp
@@ -223,7 +223,7 @@ void SerializerMarkupAccumulator::appendAttribute(StringBuilder& out,
void SerializerMarkupAccumulator::appendStartTag(Node& node,
Namespaces* namespaces) {
MarkupAccumulator::appendStartTag(node, namespaces);
- m_nodes.append(&node);
+ m_nodes.push_back(&node);
}
void SerializerMarkupAccumulator::appendEndTag(const Element& element) {
@@ -295,7 +295,7 @@ void FrameSerializer::serializeFrame(const LocalFrame& frame) {
CString frameHTML =
document.encoding().encode(text, WTF::EntitiesForUnencodables);
- m_resources->append(SerializedResource(
+ m_resources->push_back(SerializedResource(
url, document.suggestedMIMEType(),
SharedBuffer::create(frameHTML.data(), frameHTML.length())));
}
@@ -472,7 +472,7 @@ void FrameSerializer::addToResources(
return;
}
- m_resources->append(SerializedResource(url, mimeType, std::move(data)));
+ m_resources->push_back(SerializedResource(url, mimeType, std::move(data)));
m_resourceURLs.add(url);
}
« no previous file with comments | « third_party/WebKit/Source/core/frame/Frame.cpp ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698