| Index: Source/platform/fonts/GlyphBuffer.h
|
| diff --git a/Source/platform/fonts/GlyphBuffer.h b/Source/platform/fonts/GlyphBuffer.h
|
| index 5e33a10d516ffb8e4c74dfc41f4cb23eb5926ec3..358ca5e80bcd1a11113cd1ae23b26af710bfd81e 100644
|
| --- a/Source/platform/fonts/GlyphBuffer.h
|
| +++ b/Source/platform/fonts/GlyphBuffer.h
|
| @@ -79,10 +79,11 @@ public:
|
| m_advances.append(advance);
|
| }
|
|
|
| - void reverse(unsigned from, unsigned length)
|
| + void reverse()
|
| {
|
| - for (unsigned i = from, end = from + length - 1; i < end; ++i, --end)
|
| - swap(i, end);
|
| + m_fontData.reverse();
|
| + m_glyphs.reverse();
|
| + m_advances.reverse();
|
| }
|
|
|
| void expandLastAdvance(float width)
|
| @@ -93,21 +94,6 @@ public:
|
| }
|
|
|
| private:
|
| - void swap(unsigned index1, unsigned index2)
|
| - {
|
| - const SimpleFontData* f = m_fontData[index1];
|
| - m_fontData[index1] = m_fontData[index2];
|
| - m_fontData[index2] = f;
|
| -
|
| - Glyph g = m_glyphs[index1];
|
| - m_glyphs[index1] = m_glyphs[index2];
|
| - m_glyphs[index2] = g;
|
| -
|
| - FloatSize s = m_advances[index1];
|
| - m_advances[index1] = m_advances[index2];
|
| - m_advances[index2] = s;
|
| - }
|
| -
|
| Vector<const SimpleFontData*, 2048> m_fontData;
|
| Vector<Glyph, 2048> m_glyphs;
|
| Vector<FloatSize, 2048> m_advances;
|
|
|