diff options
author | Ben Murdoch <benm@google.com> | 2009-08-11 17:01:47 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2009-08-11 18:21:02 +0100 |
commit | 0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5 (patch) | |
tree | 2943df35f62d885c89d01063cc528dd73b480fea /WebCore/platform/graphics/skia/SkiaFontWin.cpp | |
parent | 7e7a70bfa49a1122b2597a1e6367d89eb4035eca (diff) | |
download | external_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.zip external_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.tar.gz external_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.tar.bz2 |
Merge in WebKit r47029.
Diffstat (limited to 'WebCore/platform/graphics/skia/SkiaFontWin.cpp')
-rw-r--r-- | WebCore/platform/graphics/skia/SkiaFontWin.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/WebCore/platform/graphics/skia/SkiaFontWin.cpp b/WebCore/platform/graphics/skia/SkiaFontWin.cpp index 7f12508..f1c5cdc 100644 --- a/WebCore/platform/graphics/skia/SkiaFontWin.cpp +++ b/WebCore/platform/graphics/skia/SkiaFontWin.cpp @@ -267,21 +267,11 @@ static bool skiaDrawText(HFONT hfont, SkCanvas* canvas, const SkPoint& point, SkPaint* paint, - const TransformationMatrix& transformationMatrix, - Gradient* gradient, - Pattern* pattern, const WORD* glyphs, const int* advances, const GOFFSET* offsets, int numGlyphs) { - SkShader* shader = NULL; - if (gradient) - shader = gradient->platformGradient(); - else if (pattern) - shader = pattern->createPlatformPattern(transformationMatrix); - - paint->setShader(shader); float x = point.fX, y = point.fY; for (int i = 0; i < numGlyphs; i++) { @@ -326,14 +316,7 @@ bool paintSkiaText(GraphicsContext* context, bool didFill = false; if ((textMode & cTextFill) && SkColorGetA(paint.getColor())) { - Gradient* fillGradient = 0; - Pattern* fillPattern = 0; - if (context->fillColorSpace() == GradientColorSpace) - fillGradient = context->fillGradient(); - else if (context->fillColorSpace() == PatternColorSpace) - fillPattern = context->fillPattern(); if (!skiaDrawText(hfont, dc, platformContext->canvas(), *origin, &paint, - context->getCTM(), fillGradient, fillPattern, &glyphs[0], &advances[0], &offsets[0], numGlyphs)) return false; didFill = true; @@ -360,14 +343,7 @@ bool paintSkiaText(GraphicsContext* context, paint.setLooper(0)->safeUnref(); } - Gradient* strokeGradient = 0; - Pattern* strokePattern = 0; - if (context->strokeColorSpace() == GradientColorSpace) - strokeGradient = context->strokeGradient(); - else if (context->strokeColorSpace() == PatternColorSpace) - strokePattern = context->strokePattern(); if (!skiaDrawText(hfont, dc, platformContext->canvas(), *origin, &paint, - context->getCTM(), strokeGradient, strokePattern, &glyphs[0], &advances[0], &offsets[0], numGlyphs)) return false; } |