| Index: third_party/WebKit/Source/platform/fonts/SimpleFontData.cpp
|
| diff --git a/third_party/WebKit/Source/platform/fonts/SimpleFontData.cpp b/third_party/WebKit/Source/platform/fonts/SimpleFontData.cpp
|
| index 08cb6622f05186fb2150f82d8b706afa9bff2634..3af6e85ff5c71fb7df328ed03f40f1f714274289 100644
|
| --- a/third_party/WebKit/Source/platform/fonts/SimpleFontData.cpp
|
| +++ b/third_party/WebKit/Source/platform/fonts/SimpleFontData.cpp
|
| @@ -381,10 +381,8 @@ static inline void getSkiaBoundsForGlyph(SkPaint& paint, Glyph glyph, SkRect& bo
|
| {
|
| paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding);
|
|
|
| - SkPath path;
|
| - paint.getTextPath(&glyph, sizeof(glyph), 0, 0, &path);
|
| - bounds = path.getBounds();
|
| -
|
| + paint.measureText(&glyph, sizeof(glyph), &bounds);
|
| + bounds = SkRect::MakeLTRB(bounds.left() - 5, bounds.top() - 5, bounds.right() + 10, bounds.bottom() + 10);
|
| if (!paint.isSubpixelText()) {
|
| SkIRect ir;
|
| bounds.round(&ir);
|
|
|