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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerPainter.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/paint/PaintLayerPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp b/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp
index 5cadf5294dd2359cdc0f632f3a12ecd9e25055c8..e8d2e4aaf0a65abec18ac69a1a22de2302308e53 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp
@@ -648,7 +648,7 @@ void PaintLayerPainter::repeatFixedPositionObjectInPages(
LayoutPoint offsetFromRoot;
m_paintLayer.convertToLayerCoords(paintingInfo.rootLayer, offsetFromRoot);
LayoutSize offsetAdjustment = m_paintLayer.location() - offsetFromRoot;
- layerFragments.append(singleFragmentIgnoredPagination);
+ layerFragments.push_back(singleFragmentIgnoredPagination);
layerFragments[0].paginationOffset += offsetAdjustment;
layerFragments[0].layerBounds.move(offsetAdjustment);
@@ -657,7 +657,7 @@ void PaintLayerPainter::repeatFixedPositionObjectInPages(
PaintLayerFragment fragment = layerFragments[i - 1];
fragment.paginationOffset += pageOffset;
fragment.layerBounds.moveBy(pageOffset);
- layerFragments.append(fragment);
+ layerFragments.push_back(fragment);
}
}
@@ -690,7 +690,7 @@ PaintResult PaintLayerPainter::paintLayerWithTransform(
if (isFixedPositionObjectInPagedMedia)
repeatFixedPositionObjectInPages(fragment, paintingInfo, layerFragments);
else
- layerFragments.append(fragment);
+ layerFragments.push_back(fragment);
} else {
// FIXME: This is a mess. Look closely at this code and the code in Layer
// and fix any issues in it & refactor to make it obvious from code
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayer.cpp ('k') | third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698