| Index: third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.cpp
|
| diff --git a/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.cpp b/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.cpp
|
| index e83296a135a594df65d9825ab7e6d0f917c76fcb..b0603181e0a4585076dc349d3246fd56716a3608 100644
|
| --- a/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.cpp
|
| +++ b/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.cpp
|
| @@ -258,8 +258,8 @@ static hb_position_t harfBuzzGetGlyphHorizontalKerning(
|
| if (typeface->getKerningPairAdjustments(glyphs, 2, kerningAdjustments)) {
|
| SkScalar upm = SkIntToScalar(typeface->getUnitsPerEm());
|
| SkScalar size = hbFontData->m_paint.getTextSize();
|
| - return SkiaScalarToHarfBuzzPosition(
|
| - SkScalarMulDiv(SkIntToScalar(kerningAdjustments[0]), size, upm));
|
| + return SkiaScalarToHarfBuzzPosition(SkIntToScalar(kerningAdjustments[0]) *
|
| + size / upm);
|
| }
|
|
|
| return 0;
|
|
|