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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutInline.cpp

Issue 2610253004: Migrate WTF::Vector::append() to ::push_back() [part 9 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/layout/LayoutInline.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutInline.cpp b/third_party/WebKit/Source/core/layout/LayoutInline.cpp
index 462ca04656c553a6bf3c6e51a76687e234a0678b..586f8ad27382481423ec5843ea2df2a9c4e326b6 100644
--- a/third_party/WebKit/Source/core/layout/LayoutInline.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutInline.cpp
@@ -420,7 +420,7 @@ void LayoutInline::splitInlines(LayoutBlockFlow* fromBlock,
for (LayoutObject* o = this; o != fromBlock; o = o->parent()) {
topMostInline = toLayoutInline(o);
if (inlinesToClone.size() < cMaxSplitDepth)
- inlinesToClone.append(topMostInline);
+ inlinesToClone.push_back(topMostInline);
// Keep walking up the chain to ensure |topMostInline| is a child of
// |fromBlock|, to avoid assertion failure when |fromBlock|'s children are
// moved to |toBlock| below.
@@ -721,7 +721,7 @@ class AbsoluteRectsGeneratorContext {
IntRect intRect = enclosingIntRect(rect);
intRect.move(m_accumulatedOffset.x().toInt(),
m_accumulatedOffset.y().toInt());
- m_rects.append(intRect);
+ m_rects.push_back(intRect);
}
private:
@@ -765,7 +765,7 @@ class AbsoluteQuadsGeneratorContext {
}
void operator()(const FloatRect& rect) {
- m_quads.append(m_geometryMap.absoluteRect(rect));
+ m_quads.push_back(m_geometryMap.absoluteRect(rect));
}
void operator()(const LayoutRect& rect) { operator()(FloatRect(rect)); }
@@ -1420,7 +1420,7 @@ class AbsoluteLayoutRectsGeneratorContext {
void operator()(const LayoutRect& rect) {
LayoutRect layoutRect(rect);
layoutRect.moveBy(m_accumulatedOffset);
- m_rects.append(layoutRect);
+ m_rects.push_back(layoutRect);
}
private:
@@ -1502,7 +1502,7 @@ void LayoutInline::addAnnotatedRegions(Vector<AnnotatedRegionValue>& regions) {
region.bounds.setX(LayoutUnit(absPos.x() + region.bounds.x()));
region.bounds.setY(LayoutUnit(absPos.y() + region.bounds.y()));
- regions.append(region);
+ regions.push_back(region);
}
void LayoutInline::invalidateDisplayItemClients(
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutGrid.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutMultiColumnSet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698