Changeset 83329 in webkit


Ignore:
Timestamp:
Apr 8, 2011 1:08:01 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-04-08 Mike Reed <reed@google.com>

Reviewed by Eric Seidel.

Replace SKIA_TEXT with isNativeFontRenderingAllowed() for print-preview to work
https://bugs.webkit.org/show_bug.cgi?id=57782

No new tests. This change only affects print-preview and build option SKIA_GPU

  • platform/graphics/skia/SkiaFontWin.cpp: (WebCore::paintSkiaText):
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r83322 r83329  
     12011-04-08  Mike Reed  <reed@google.com>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Replace SKIA_TEXT with isNativeFontRenderingAllowed() for print-preview to work
     6        https://bugs.webkit.org/show_bug.cgi?id=57782
     7
     8        No new tests. This change only affects print-preview and build option SKIA_GPU
     9
     10        * platform/graphics/skia/SkiaFontWin.cpp:
     11        (WebCore::paintSkiaText):
     12
    1132011-04-08  Ryosuke Niwa  <rniwa@webkit.org>
    214
  • trunk/Source/WebCore/platform/graphics/skia/SkiaFontWin.cpp

    r82532 r83329  
    378378        platformContext->setupPaintForStroking(&paint, 0, 0);
    379379        paint.setFlags(SkPaint::kAntiAlias_Flag);
    380 #if ENABLE(SKIA_TEXT)
    381         paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding);
    382         setupPaintForFont(hfont, &paint);
    383 #endif
     380        if (!platformContext->isNativeFontRenderingAllowed()) {
     381            paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding);
     382            setupPaintForFont(hfont, &paint);
     383        }
    384384
    385385        if (didFill) {
Note: See TracChangeset for help on using the changeset viewer.