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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlockFlow.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/LayoutBlockFlow.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
index 57a5aa11f641632a5b678a064782f06370c959f0..0f6faf1cc016b900853aa5e6eb43268f39611657 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
@@ -2436,7 +2436,7 @@ void LayoutBlockFlow::computeSelfHitTestRects(
// It's common for this rect to be entirely contained in our box, so exclude
// that simple case.
if (!rect.isEmpty() && (rects.isEmpty() || !rects[0].contains(rect)))
- rects.append(rect);
+ rects.push_back(rect);
}
}
@@ -2454,7 +2454,7 @@ void LayoutBlockFlow::absoluteRects(
// https://bugs.webkit.org/show_bug.cgi?id=46781
LayoutRect rect(accumulatedOffset, size());
rect.expand(collapsedMarginBoxLogicalOutsets());
- rects.append(pixelSnappedIntRect(rect));
+ rects.push_back(pixelSnappedIntRect(rect));
continuation()->absoluteRects(
rects,
accumulatedOffset -
@@ -2481,7 +2481,7 @@ void LayoutBlockFlow::absoluteQuadsForSelf(Vector<FloatQuad>& quads,
// https://bugs.webkit.org/show_bug.cgi?id=46781
LayoutRect localRect(LayoutPoint(), size());
localRect.expand(collapsedMarginBoxLogicalOutsets());
- quads.append(localToAbsoluteQuad(FloatRect(localRect), mode));
+ quads.push_back(localToAbsoluteQuad(FloatRect(localRect), mode));
}
LayoutObject* LayoutBlockFlow::hoverAncestor() const {
@@ -3265,7 +3265,7 @@ void LayoutBlockFlow::makeChildrenInlineIfPossible() {
if (child->isRubyRun() || child->isRubyBase())
return;
- blocksToRemove.append(toLayoutBlockFlow(child));
+ blocksToRemove.push_back(toLayoutBlockFlow(child));
}
// If we make an object's children inline we are going to frustrate any future
@@ -4562,7 +4562,7 @@ void LayoutBlockFlow::addOutlineRects(
if (topMargin || bottomMargin) {
LayoutRect rect(additionalOffset, size());
rect.expandEdges(topMargin, LayoutUnit(), bottomMargin, LayoutUnit());
- rects.append(rect);
+ rects.push_back(rect);
}
}
@@ -4578,7 +4578,7 @@ void LayoutBlockFlow::addOutlineRects(
LayoutRect rect(additionalOffset.x() + curr->x(),
additionalOffset.y() + top, curr->width(), bottom - top);
if (!rect.isEmpty())
- rects.append(rect);
+ rects.push_back(rect);
}
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlock.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698