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

Unified Diff: third_party/WebKit/Source/modules/plugins/PluginOcclusionSupport.cpp

Issue 2614663008: Migrate WTF::Vector::append() to ::push_back() [part 13 of N] (Closed)
Patch Set: 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/modules/plugins/PluginOcclusionSupport.cpp
diff --git a/third_party/WebKit/Source/modules/plugins/PluginOcclusionSupport.cpp b/third_party/WebKit/Source/modules/plugins/PluginOcclusionSupport.cpp
index a738ac0d1f16e935061db18fedad2c89af7dd9e9..ece11f530e4ea7cb904157b9db48665d2a287efb 100644
--- a/third_party/WebKit/Source/modules/plugins/PluginOcclusionSupport.cpp
+++ b/third_party/WebKit/Source/modules/plugins/PluginOcclusionSupport.cpp
@@ -50,7 +50,7 @@ static void getObjectStack(const LayoutObject* ro,
Vector<const LayoutObject*>* roStack) {
roStack->clear();
while (ro) {
- roStack->append(ro);
+ roStack->push_back(ro);
ro = ro->parent();
}
}
@@ -125,8 +125,8 @@ static bool intersectsRect(const LayoutObject* renderer, const IntRect& rect) {
static void addToOcclusions(const LayoutBox* renderer,
Vector<IntRect>& occlusions) {
- occlusions.append(IntRect(roundedIntPoint(renderer->localToAbsolute()),
- flooredIntSize(renderer->size())));
+ occlusions.push_back(IntRect(roundedIntPoint(renderer->localToAbsolute()),
+ flooredIntSize(renderer->size())));
}
static void addTreeToOcclusions(const LayoutObject* renderer,

Powered by Google App Engine
This is Rietveld 408576698