| 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 b0603181e0a4585076dc349d3246fd56716a3608..e83296a135a594df65d9825ab7e6d0f917c76fcb 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 @@
|
| if (typeface->getKerningPairAdjustments(glyphs, 2, kerningAdjustments)) {
|
| SkScalar upm = SkIntToScalar(typeface->getUnitsPerEm());
|
| SkScalar size = hbFontData->m_paint.getTextSize();
|
| - return SkiaScalarToHarfBuzzPosition(SkIntToScalar(kerningAdjustments[0]) *
|
| - size / upm);
|
| + return SkiaScalarToHarfBuzzPosition(
|
| + SkScalarMulDiv(SkIntToScalar(kerningAdjustments[0]), size, upm));
|
| }
|
|
|
| return 0;
|
|
|