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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBox.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/LayoutBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
index 57b0a06242d65daf7d7c4b1828221da15edb9fa6..68cd2c8c38d5183b11618cf442cea34293d272ba 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -700,7 +700,7 @@ void LayoutBox::scrollRectToVisible(const LayoutRect& rect,
void LayoutBox::absoluteRects(Vector<IntRect>& rects,
const LayoutPoint& accumulatedOffset) const {
- rects.append(pixelSnappedIntRect(accumulatedOffset, size()));
+ rects.push_back(pixelSnappedIntRect(accumulatedOffset, size()));
}
void LayoutBox::absoluteQuads(Vector<FloatQuad>& quads,
@@ -709,7 +709,7 @@ void LayoutBox::absoluteQuads(Vector<FloatQuad>& quads,
flowThread->absoluteQuadsForDescendant(*this, quads, mode);
return;
}
- quads.append(
+ quads.push_back(
localToAbsoluteQuad(FloatRect(0, 0, m_frameRect.width().toFloat(),
m_frameRect.height().toFloat()),
mode));
@@ -906,7 +906,7 @@ LayoutRect LayoutBox::backgroundRect(BackgroundRectType rectType) const {
void LayoutBox::addOutlineRects(Vector<LayoutRect>& rects,
const LayoutPoint& additionalOffset,
IncludeBlockVisualOverflowOrNot) const {
- rects.append(LayoutRect(additionalOffset, size()));
+ rects.push_back(LayoutRect(additionalOffset, size()));
}
bool LayoutBox::canResize() const {
@@ -929,7 +929,7 @@ void LayoutBox::addLayerHitTestRects(LayerHitTestRects& layerRects,
void LayoutBox::computeSelfHitTestRects(Vector<LayoutRect>& rects,
const LayoutPoint& layerOffset) const {
if (!size().isEmpty())
- rects.append(LayoutRect(layerOffset, size()));
+ rects.push_back(LayoutRect(layerOffset, size()));
}
int LayoutBox::verticalScrollbarWidth() const {

Powered by Google App Engine
This is Rietveld 408576698