| Index: Source/platform/fonts/mac/FontMac.cpp
|
| diff --git a/Source/platform/fonts/mac/FontMac.cpp b/Source/platform/fonts/mac/FontMac.cpp
|
| index 1b4aeb4c0c6650cb87e2b230dcaba0e4cbd7c021..5ce7c8aaec62473b479306350397bee9b07b987c 100644
|
| --- a/Source/platform/fonts/mac/FontMac.cpp
|
| +++ b/Source/platform/fonts/mac/FontMac.cpp
|
| @@ -142,8 +142,7 @@ void Font::drawGlyphs(GraphicsContext* gc, const SimpleFontData* font,
|
|
|
| // We draw text up to two times (once for fill, once for stroke).
|
| if (textMode & TextModeFill) {
|
| - SkPaint paint;
|
| - gc->setupPaintForFilling(&paint);
|
| + SkPaint paint = gc->fillPaint();
|
| setupPaint(&paint, font, this, shouldAntialias, shouldSmoothFonts);
|
| gc->adjustTextRenderMode(&paint);
|
| paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding);
|
| @@ -155,8 +154,7 @@ void Font::drawGlyphs(GraphicsContext* gc, const SimpleFontData* font,
|
| && gc->strokeStyle() != NoStroke
|
| && gc->strokeThickness() > 0) {
|
|
|
| - SkPaint paint;
|
| - gc->setupPaintForStroking(&paint);
|
| + SkPaint paint = gc->strokePaint();
|
| setupPaint(&paint, font, this, shouldAntialias, shouldSmoothFonts);
|
| gc->adjustTextRenderMode(&paint);
|
| paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding);
|
|
|