| 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 932a5280b50cb419cdfd3fdf048343d42d330f4d..98f3defb94ddccdd5e0a37c2f4e6f4e12650f9c4 100644
|
| --- a/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp
|
| +++ b/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp
|
| @@ -295,8 +295,8 @@ inline bool HarfBuzzShaper::shapeRange(hb_buffer_t* harfBuzzBuffer,
|
| m_font->getFontDescription(), m_normalizedBuffer.get(), m_normalizedBufferLength,
|
| startIndex, numCharacters);
|
|
|
| - HarfBuzzScopedPtr<hb_font_t> harfBuzzFont(face->createFont(currentFontRangeSet), hb_font_destroy);
|
| - hb_shape(harfBuzzFont.get(), harfBuzzBuffer, m_features.isEmpty() ? 0 : m_features.data(), m_features.size());
|
| + hb_font_t* hbFont = face->getScaledFont(currentFontRangeSet);
|
| + hb_shape(hbFont, harfBuzzBuffer, m_features.isEmpty() ? 0 : m_features.data(), m_features.size());
|
|
|
| return true;
|
| }
|
|
|