| Index: Source/core/platform/graphics/skia/FontSkia.cpp
|
| diff --git a/Source/core/platform/graphics/skia/FontSkia.cpp b/Source/core/platform/graphics/skia/FontSkia.cpp
|
| index 6d7261d19a2405600e2fc418b34022d89db8f224..452c0b01885ed221d25859b47fcfb26ed84544ba 100644
|
| --- a/Source/core/platform/graphics/skia/FontSkia.cpp
|
| +++ b/Source/core/platform/graphics/skia/FontSkia.cpp
|
| @@ -89,7 +89,7 @@ static void setupPaint(SkPaint* paint, const SimpleFontData* fontData, const Fon
|
| // This issue is tracked in https://bugs.webkit.org/show_bug.cgi?id=62989
|
| void Font::drawGlyphs(GraphicsContext* gc, const SimpleFontData* font,
|
| const GlyphBuffer& glyphBuffer, int from, int numGlyphs,
|
| - const FloatPoint& point) const {
|
| + const FloatPoint& point, const FloatRect& textRect) const {
|
| COMPILE_ASSERT(sizeof(GlyphBufferGlyph) == sizeof(uint16_t), GlyphBufferGlyphSize_equals_uint16_t);
|
|
|
| bool shouldSmoothFonts = true;
|
| @@ -154,7 +154,7 @@ void Font::drawGlyphs(GraphicsContext* gc, const SimpleFontData* font,
|
| gc->platformContext()->adjustTextRenderMode(&paint);
|
| paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding);
|
|
|
| - platformContext->drawPosText(glyphs, numGlyphs * sizeof(uint16_t), pos, paint);
|
| + platformContext->drawPosText(glyphs, numGlyphs * sizeof(uint16_t), pos, textRect, paint);
|
| }
|
|
|
| if ((textMode & TextModeStroke)
|
| @@ -173,7 +173,7 @@ void Font::drawGlyphs(GraphicsContext* gc, const SimpleFontData* font,
|
| paint.setLooper(0);
|
| }
|
|
|
| - platformContext->drawPosText(glyphs, numGlyphs * sizeof(uint16_t), pos, paint);
|
| + platformContext->drawPosText(glyphs, numGlyphs * sizeof(uint16_t), pos, textRect, paint);
|
| }
|
| if (font->platformData().orientation() == Vertical)
|
| platformContext->restore();
|
|
|