| Index: Source/platform/fonts/shaping/HarfBuzzShaper.cpp
|
| diff --git a/Source/platform/fonts/shaping/HarfBuzzShaper.cpp b/Source/platform/fonts/shaping/HarfBuzzShaper.cpp
|
| index 5a8d259d135af7f7dc8974cb8232cf9c2d9bbded..6d13f19b1c620c756301b08fd779fecf7b6b6a74 100644
|
| --- a/Source/platform/fonts/shaping/HarfBuzzShaper.cpp
|
| +++ b/Source/platform/fonts/shaping/HarfBuzzShaper.cpp
|
| @@ -385,6 +385,7 @@ HarfBuzzShaper::HarfBuzzShaper(const Font* font, const TextRun& run, const Glyph
|
| , m_expansionOpportunityCount(0)
|
| , m_fromIndex(0)
|
| , m_toIndex(m_run.length())
|
| + , m_totalWidth(0)
|
| {
|
| m_normalizedBuffer = adoptArrayPtr(new UChar[m_run.length() + 1]);
|
| normalizeCharacters(m_run, m_run.length(), m_normalizedBuffer.get(), &m_normalizedBufferLength);
|
| @@ -541,7 +542,6 @@ bool HarfBuzzShaper::shape(GlyphBuffer* glyphBuffer)
|
| if (!createHarfBuzzRuns())
|
| return false;
|
|
|
| - m_totalWidth = 0;
|
| if (!shapeHarfBuzzRuns())
|
| return false;
|
|
|
|
|