Title: [147623] trunk/Source/WebCore
- Revision
- 147623
- Author
- [email protected]
- Date
- 2013-04-04 06:20:17 -0700 (Thu, 04 Apr 2013)
Log 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):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (147622 => 147623)
--- trunk/Source/WebCore/ChangeLog 2013-04-04 12:05:27 UTC (rev 147622)
+++ trunk/Source/WebCore/ChangeLog 2013-04-04 13:20:17 UTC (rev 147623)
@@ -1,3 +1,16 @@
+2013-04-04 Allan Sandfeld Jensen <[email protected]>
+
+ [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):
+
2013-04-04 Christophe Dumez <[email protected]>
Regression(r142765) Broke Custom SVG cursors and SVG canvas drawing for Chromium
Modified: trunk/Source/WebCore/platform/graphics/qt/FontPlatformDataQt.cpp (147622 => 147623)
--- trunk/Source/WebCore/platform/graphics/qt/FontPlatformDataQt.cpp 2013-04-04 12:05:27 UTC (rev 147622)
+++ trunk/Source/WebCore/platform/graphics/qt/FontPlatformDataQt.cpp 2013-04-04 13:20:17 UTC (rev 147623)
@@ -73,9 +73,10 @@
font.setWeight(toQFontWeight(description.weight()));
font.setWordSpacing(wordSpacing);
font.setLetterSpacing(QFont::AbsoluteSpacing, letterSpacing);
+ if (description.fontSmoothing() == NoSmoothing)
+ font.setStyleStrategy(QFont::NoAntialias);
#if QT_VERSION >= QT_VERSION_CHECK(5, 1, 0)
- if (description.fontSmoothing() == NoSmoothing
- || (description.fontSmoothing() == AutoSmoothing && !Font::shouldUseSmoothing()))
+ if (description.fontSmoothing() == AutoSmoothing && !Font::shouldUseSmoothing())
font.setStyleStrategy(QFont::NoAntialias);
#endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes