| Index: third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp
|
| diff --git a/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp b/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp
|
| index 513c66ab0543142023465411560b9a99f49f1669..e4c1adc78ae931f044c7bde788a2ac5dd2880b6d 100644
|
| --- a/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp
|
| +++ b/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp
|
| @@ -341,8 +341,8 @@
|
| m_font->fontDescription(), m_normalizedBuffer.get(), m_normalizedBufferLength,
|
| startIndex, numCharacters);
|
|
|
| - hb_font_t* hbFont = face->getScaledFont(currentFontRangeFrom, currentFontRangeTo);
|
| - hb_shape(hbFont, harfBuzzBuffer, m_features.isEmpty() ? 0 : m_features.data(), m_features.size());
|
| + HarfBuzzScopedPtr<hb_font_t> harfBuzzFont(face->createFont(currentFontRangeFrom, currentFontRangeTo), hb_font_destroy);
|
| + hb_shape(harfBuzzFont.get(), harfBuzzBuffer, m_features.isEmpty() ? 0 : m_features.data(), m_features.size());
|
|
|
| return true;
|
| }
|
|
|