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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGText.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/svg/LayoutSVGText.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp
index d0026cc41d805e136c05cba360de235a9f58606a..f732e1d84d5dc7114a9611996169e5ad7253809d 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp
@@ -98,7 +98,7 @@ static inline void collectDescendantTextNodes(
for (LayoutObject* descendant = textRoot.firstChild(); descendant;
descendant = descendant->nextInPreOrder(&textRoot)) {
if (descendant->isSVGInlineText())
- descendantTextNodes.append(toLayoutSVGInlineText(descendant));
+ descendantTextNodes.push_back(toLayoutSVGInlineText(descendant));
}
}
@@ -346,7 +346,7 @@ PositionWithAffinity LayoutSVGText::positionForPoint(
void LayoutSVGText::absoluteQuads(Vector<FloatQuad>& quads,
MapCoordinatesFlags mode) const {
- quads.append(localToAbsoluteQuad(strokeBoundingBox(), mode));
+ quads.push_back(localToAbsoluteQuad(strokeBoundingBox(), mode));
}
void LayoutSVGText::paint(const PaintInfo& paintInfo,
@@ -387,7 +387,7 @@ FloatRect LayoutSVGText::visualRectInLocalSVGCoordinates() const {
void LayoutSVGText::addOutlineRects(Vector<LayoutRect>& rects,
const LayoutPoint&,
IncludeBlockVisualOverflowOrNot) const {
- rects.append(LayoutRect(objectBoundingBox()));
+ rects.push_back(LayoutRect(objectBoundingBox()));
}
bool LayoutSVGText::isObjectBoundingBoxValid() const {

Powered by Google App Engine
This is Rietveld 408576698