Changeset 147623 in webkit


Ignore:
Timestamp:
Apr 4, 2013 6:20:17 AM (11 years ago)
Author:
allan.jensen@digia.com
Message:

[Qt] Support -webkit-font-smoothing
https://bugs.webkit.org/show_bug.cgi?id=106009

Reviewed by Jocelyn Turcotte.

Remove false dependency on Qt 5.1 for the -webkit-font-smoothing property.
For now we are still keeping the dependency on Font::shouldUseSmoothing().

  • platform/graphics/qt/FontPlatformDataQt.cpp:

(WebCore::FontPlatformData::FontPlatformData):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r147622 r147623  
     12013-04-04  Allan Sandfeld Jensen  <allan.jensen@digia.com>
     2
     3        [Qt] Support -webkit-font-smoothing
     4        https://bugs.webkit.org/show_bug.cgi?id=106009
     5
     6        Reviewed by Jocelyn Turcotte.
     7
     8        Remove false dependency on Qt 5.1 for the -webkit-font-smoothing property.
     9        For now we are still keeping the dependency on Font::shouldUseSmoothing().
     10
     11        * platform/graphics/qt/FontPlatformDataQt.cpp:
     12        (WebCore::FontPlatformData::FontPlatformData):
     13
    1142013-04-04  Christophe Dumez  <ch.dumez@sisa.samsung.com>
    215
  • trunk/Source/WebCore/platform/graphics/qt/FontPlatformDataQt.cpp

    r147544 r147623  
    7474    font.setWordSpacing(wordSpacing);
    7575    font.setLetterSpacing(QFont::AbsoluteSpacing, letterSpacing);
     76    if (description.fontSmoothing() == NoSmoothing)
     77        font.setStyleStrategy(QFont::NoAntialias);
    7678#if QT_VERSION >= QT_VERSION_CHECK(5, 1, 0)
    77     if (description.fontSmoothing() == NoSmoothing
    78         || (description.fontSmoothing() == AutoSmoothing && !Font::shouldUseSmoothing()))
     79    if (description.fontSmoothing() == AutoSmoothing && !Font::shouldUseSmoothing())
    7980        font.setStyleStrategy(QFont::NoAntialias);
    8081#endif
Note: See TracChangeset for help on using the changeset viewer.