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

Unified Diff: third_party/WebKit/Source/core/dom/MutationObserver.cpp

Issue 2574773002: Migrate WTF::Vector::append() to ::push_back() [part 4 of N] (Closed)
Patch Set: rebase 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/dom/MutationObserver.cpp
diff --git a/third_party/WebKit/Source/core/dom/MutationObserver.cpp b/third_party/WebKit/Source/core/dom/MutationObserver.cpp
index cce4f48601a9aa5e52fd0fdb02c3bb5387cc8297..0c595bb17a3517d44cc2d2581be6463caa602df6 100644
--- a/third_party/WebKit/Source/core/dom/MutationObserver.cpp
+++ b/third_party/WebKit/Source/core/dom/MutationObserver.cpp
@@ -186,7 +186,7 @@ static void activateObserver(MutationObserver* observer) {
void MutationObserver::enqueueMutationRecord(MutationRecord* mutation) {
DCHECK(isMainThread());
- m_records.append(mutation);
+ m_records.push_back(mutation);
activateObserver(this);
InspectorInstrumentation::asyncTaskScheduled(
m_callback->getExecutionContext(), mutation->type(), mutation);
@@ -224,7 +224,7 @@ void MutationObserver::deliver() {
HeapVector<Member<MutationObserverRegistration>, 1> transientRegistrations;
for (auto& registration : m_registrations) {
if (registration->hasTransientRegistrations())
- transientRegistrations.append(registration);
+ transientRegistrations.push_back(registration);
}
for (const auto& registration : transientRegistrations)
registration->clearTransientRegistrations();
« no previous file with comments | « third_party/WebKit/Source/core/dom/IntersectionObserverController.cpp ('k') | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698