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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.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/LayoutSVGInlineText.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp
index 1158e203b9c9847f01b0ff271b0fe9e401bb7d5a..5b1719419047f696ceecc587fe78056a43ca3917 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp
@@ -309,7 +309,7 @@ void LayoutSVGInlineText::addMetricsFromRun(const TextRun& run,
bool currentCharacterIsWhiteSpace = run[characterIndex] == ' ';
if (!preserveWhiteSpace && lastCharacterWasWhiteSpace &&
currentCharacterIsWhiteSpace) {
- m_metrics.append(SVGTextMetrics(SVGTextMetrics::SkippedSpaceMetrics));
+ m_metrics.push_back(SVGTextMetrics(SVGTextMetrics::SkippedSpaceMetrics));
characterIndex++;
continue;
}
@@ -317,7 +317,7 @@ void LayoutSVGInlineText::addMetricsFromRun(const TextRun& run,
unsigned length = isValidSurrogatePair(run, characterIndex) ? 2 : 1;
float width = charRanges[characterIndex].width() / m_scalingFactor;
- m_metrics.append(SVGTextMetrics(length, width, cachedFontHeight));
+ m_metrics.push_back(SVGTextMetrics(length, width, cachedFontHeight));
lastCharacterWasWhiteSpace = currentCharacterIsWhiteSpace;
characterIndex += length;

Powered by Google App Engine
This is Rietveld 408576698