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

Unified Diff: third_party/WebKit/Source/platform/fonts/GlyphBuffer.h

Issue 2615813003: Migrate WTF::Vector::append() to ::push_back() [part 14 of N] (Closed)
Patch Set: rebase, small fix in FontSettings.h 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/platform/fonts/GlyphBuffer.h
diff --git a/third_party/WebKit/Source/platform/fonts/GlyphBuffer.h b/third_party/WebKit/Source/platform/fonts/GlyphBuffer.h
index 8a521344eb6bc4ebd05bf9aef4cfc0e4acf8883d..12bef292197b18456f476a8f7455764ce75ebd59 100644
--- a/third_party/WebKit/Source/platform/fonts/GlyphBuffer.h
+++ b/third_party/WebKit/Source/platform/fonts/GlyphBuffer.h
@@ -96,19 +96,19 @@ class GlyphBuffer {
// cannot mix x-only/xy offsets
ASSERT(!hasVerticalOffsets());
- m_fontData.append(font);
- m_glyphs.append(glyph);
- m_offsets.append(x);
+ m_fontData.push_back(font);
+ m_glyphs.push_back(glyph);
+ m_offsets.push_back(x);
}
void add(Glyph glyph, const SimpleFontData* font, const FloatPoint& offset) {
// cannot mix x-only/xy offsets
ASSERT(isEmpty() || hasVerticalOffsets());
- m_fontData.append(font);
- m_glyphs.append(glyph);
- m_offsets.append(offset.x());
- m_offsets.append(offset.y());
+ m_fontData.push_back(font);
+ m_glyphs.push_back(glyph);
+ m_offsets.push_back(offset.x());
+ m_offsets.push_back(offset.y());
}
void reverseForSimpleRTL(float afterOffset, float totalWidth) {
@@ -157,7 +157,7 @@ class GlyphBuffer {
void addIsSkipInkException(bool value) {
DCHECK(hasSkipInkExceptions());
DCHECK_EQ(m_skipInkExceptions->size(), m_offsets.size() - 1);
- m_skipInkExceptions->append(value);
+ m_skipInkExceptions->push_back(value);
}
protected:

Powered by Google App Engine
This is Rietveld 408576698