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

Unified Diff: third_party/WebKit/Source/core/events/EventTarget.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
Index: third_party/WebKit/Source/core/events/EventTarget.cpp
diff --git a/third_party/WebKit/Source/core/events/EventTarget.cpp b/third_party/WebKit/Source/core/events/EventTarget.cpp
index fc5d07dd42c589d9b08403fa5004666aeb85fddd..b604401d954b772c5ee7a2a28b1cd84f08a2ec65 100644
--- a/third_party/WebKit/Source/core/events/EventTarget.cpp
+++ b/third_party/WebKit/Source/core/events/EventTarget.cpp
@@ -283,8 +283,8 @@ bool EventTarget::addEventListenerInternal(
V8DOMActivityLogger::currentActivityLoggerIfIsolatedWorld();
if (activityLogger) {
Vector<String> argv;
- argv.append(toNode() ? toNode()->nodeName() : interfaceName());
- argv.append(eventType);
+ argv.push_back(toNode() ? toNode()->nodeName() : interfaceName());
+ argv.push_back(eventType);
activityLogger->logEvent("blinkAddEventListener", argv.size(), argv.data());
}
@@ -647,7 +647,8 @@ bool EventTarget::fireEventListeners(Event* event,
size_t size = entry.size();
if (!d->firingEventIterators)
d->firingEventIterators = WTF::wrapUnique(new FiringEventIteratorVector);
- d->firingEventIterators->append(FiringEventIterator(event->type(), i, size));
+ d->firingEventIterators->push_back(
+ FiringEventIterator(event->type(), i, size));
double blockedEventThreshold = blockedEventsWarningThreshold(context, event);
TimeTicks now;
« no previous file with comments | « third_party/WebKit/Source/core/events/EventSender.h ('k') | third_party/WebKit/Source/core/events/GenericEventQueue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698