summaryrefslogtreecommitdiff
path: root/Tools/DumpRenderTree
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@digia.com>2013-03-27 17:08:22 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-28 16:18:16 +0100
commit3f5a0c1161d18c4f1b17bc2cb0093b03b72ac772 (patch)
tree46db077b2e67ee5a6b327ff590d8c9eb05268619 /Tools/DumpRenderTree
parent44329e0faee75171545189ad7be58ac4c36652fe (diff)
downloadqtwebkit-3f5a0c1161d18c4f1b17bc2cb0093b03b72ac772.tar.gz
[Qt] Support -webkit-font-smoothing
https://bugs.webkit.org/show_bug.cgi?id=106009 Reviewed by Jocelyn Turcotte. Source/WebCore: Set QFont antialiasing settings based on the font smoothing settings in FontDescription. * platform/graphics/qt/FontPlatformDataQt.cpp: (WebCore::FontPlatformData::FontPlatformData): Source/WebKit/qt: Export an interface so DRT can also disable font-smoothing like WTR does. * WebCoreSupport/DumpRenderTreeSupportQt.cpp: (DumpRenderTreeSupportQt::setShouldUseFontSmoothing): * WebCoreSupport/DumpRenderTreeSupportQt.h: Tools: Set shouldUseFontSmoothing to false to match WebKitTestRunner. * DumpRenderTree/qt/TestRunnerQt.cpp: (TestRunnerQt::reset): Change-Id: I19457407ac310bd5de315943b631dd12dffc7683 git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146324 268f45cc-cd09-0410-ab3c-d52691b4dbfc Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'Tools/DumpRenderTree')
-rw-r--r--Tools/DumpRenderTree/qt/TestRunnerQt.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tools/DumpRenderTree/qt/TestRunnerQt.cpp b/Tools/DumpRenderTree/qt/TestRunnerQt.cpp
index d93505fc5..f6b149c35 100644
--- a/Tools/DumpRenderTree/qt/TestRunnerQt.cpp
+++ b/Tools/DumpRenderTree/qt/TestRunnerQt.cpp
@@ -93,6 +93,7 @@ void TestRunner::reset()
DumpRenderTreeSupportQt::dumpHistoryCallbacks(false);
DumpRenderTreeSupportQt::dumpVisitedLinksCallbacks(false);
DumpRenderTreeSupportQt::resetGeolocationMock(m_drt->pageAdapter());
+ DumpRenderTreeSupportQt::setShouldUseFontSmoothing(false);
setIconDatabaseEnabled(false);
clearAllDatabases();
// The default state for DRT is to block third-party cookies, mimicing the Mac port