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

Unified Diff: third_party/WebKit/Source/core/observer/ResizeObserver.cpp

Issue 2617783002: Migrate WTF::Vector::append() to ::push_back() [part 12 of N] (Closed)
Patch Set: rebase Created 3 years, 11 months 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/observer/ResizeObserver.cpp
diff --git a/third_party/WebKit/Source/core/observer/ResizeObserver.cpp b/third_party/WebKit/Source/core/observer/ResizeObserver.cpp
index 3a81c67f99a95315938deaa03a522c325675bb9f..f64cd528ac95bd65ab71b0639fd7773a59ade5b7 100644
--- a/third_party/WebKit/Source/core/observer/ResizeObserver.cpp
+++ b/third_party/WebKit/Source/core/observer/ResizeObserver.cpp
@@ -74,7 +74,7 @@ size_t ResizeObserver::gatherObservations(size_t deeperThan) {
continue;
auto depth = observation->targetDepth();
if (depth > deeperThan) {
- m_activeObservations.append(*observation);
+ m_activeObservations.push_back(*observation);
minObservedDepth = std::min(minObservedDepth, depth);
} else {
m_skippedObservations = true;
@@ -98,7 +98,7 @@ void ResizeObserver::deliverObservations() {
observation->setObservationSize(size);
auto entry = new ResizeObserverEntry(observation->target(),
LayoutRect(location, size));
- entries.append(entry);
+ entries.push_back(entry);
}
m_callback->handleEvent(entries, this);
clearObservations();

Powered by Google App Engine
This is Rietveld 408576698