| Index: Source/core/platform/graphics/skia/SimpleFontDataSkia.cpp
|
| diff --git a/Source/core/platform/graphics/skia/SimpleFontDataSkia.cpp b/Source/core/platform/graphics/skia/SimpleFontDataSkia.cpp
|
| index 5acac0930622db90b1c3b7806dd12fcaa399298e..56eef1e333893ea0730ecae6e0e0af779910ceba 100644
|
| --- a/Source/core/platform/graphics/skia/SimpleFontDataSkia.cpp
|
| +++ b/Source/core/platform/graphics/skia/SimpleFontDataSkia.cpp
|
| @@ -89,9 +89,8 @@ void SimpleFontData::platformInit()
|
| ascent = vdmxAscent;
|
| descent = -vdmxDescent;
|
| } else {
|
| - SkScalar height = -metrics.fAscent + metrics.fDescent + metrics.fLeading;
|
| ascent = SkScalarRound(-metrics.fAscent);
|
| - descent = SkScalarRound(height) - ascent;
|
| + descent = SkScalarRound(metrics.fDescent);
|
| #if OS(LINUX) || OS(ANDROID)
|
| // When subpixel positioning is enabled, if the descent is rounded down, the descent part
|
| // of the glyph may be truncated when displayed in a 'overflow: hidden' container.
|
|
|