⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 94019 in webkit


Ignore:
Timestamp:
Aug 29, 2011, 2:57:09 PM (15 years ago)
Author:
caryclark@google.com
Message:

Only enable font smoothing as requested (Skia on Mac)
https://bugs.webkit.org/show_bug.cgi?id=67143

This adjusts LayoutTest pixel output to more closely
match other platforms.

Reviewed by Kenneth Russell.

No new tests. This platform is not yet enabled.

  • platform/graphics/skia/FontSkia.cpp:

(WebCore::setupPaint):
LCD text was always enabled to test the code path. With this change,
it is only enabled when instructed by the font state.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r94016 r94019  
     12011-08-29  Cary Clark  <caryclark@google.com>
     2
     3        Only enable font smoothing as requested (Skia on Mac)
     4        https://bugs.webkit.org/show_bug.cgi?id=67143
     5
     6        This adjusts LayoutTest pixel output to more closely
     7        match other platforms.
     8
     9        Reviewed by Kenneth Russell.
     10
     11        No new tests. This platform is not yet enabled.
     12
     13        * platform/graphics/skia/FontSkia.cpp:
     14        (WebCore::setupPaint):
     15        LCD text was always enabled to test the code path. With this change,
     16        it is only enabled when instructed by the font state.
     17
    1182011-08-29  Julien Chaffraix  <jchaffraix@webkit.org>
    219
  • trunk/Source/WebCore/platform/graphics/skia/FontSkia.cpp

    r93057 r94019  
    8888    paint->setTextSkewX(platformData.m_syntheticOblique ? -SK_Scalar1 / 4 : 0);
    8989    paint->setAutohinted(false); // freetype specific
    90     paint->setLCDRenderText(true); // font->fontDescription().fontSmoothing() == SubpixelAntialiased);
     90    paint->setLCDRenderText(font->fontDescription().fontSmoothing() == SubpixelAntialiased);
    9191}
    9292
Note: See TracChangeset for help on using the changeset viewer.