Changeset 146324 in webkit
- Timestamp:
- Mar 20, 2013 4:22:14 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r146319 r146324 1 2013-03-19 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 Set QFont antialiasing settings based on the font smoothing settings in FontDescription. 9 10 * platform/graphics/qt/FontPlatformDataQt.cpp: 11 (WebCore::FontPlatformData::FontPlatformData): 12 1 13 2013-03-20 Alexei Filippov <alph@chromium.org> 2 14 -
trunk/Source/WebCore/platform/graphics/qt/FontPlatformDataQt.cpp
r146203 r146324 3 3 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ 4 4 Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies) 5 Copyright (C) 2013 Digia Plc. and/or its subsidiary(-ies) 5 6 6 7 This library is free software; you can redistribute it and/or … … 24 25 #include "FontPlatformData.h" 25 26 27 #include "Font.h" 26 28 #include <wtf/text/WTFString.h> 27 29 … … 73 75 font.setLetterSpacing(QFont::AbsoluteSpacing, letterSpacing); 74 76 #if QT_VERSION < QT_VERSION_CHECK(5, 1, 0) 75 // Kept enabled for Qt < 5.1 to maintain stable baselines for 5.0.77 // To maintain stable baselines for Qt 5.0, keep force integer metrics enabled and ignore font-smoothing setting. 76 78 font.setStyleStrategy(QFont::ForceIntegerMetrics); 79 #else 80 if (description.fontSmoothing() == NoSmoothing 81 || (description.fontSmoothing() == AutoSmoothing && !Font::shouldUseSmoothing())) 82 font.setStyleStrategy(QFont::NoAntialias); 77 83 #endif 78 84 -
trunk/Source/WebKit/qt/ChangeLog
r145914 r146324 1 2013-03-19 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 Export an interface so DRT can also disable font-smoothing like WTR does. 9 10 * WebCoreSupport/DumpRenderTreeSupportQt.cpp: 11 (DumpRenderTreeSupportQt::setShouldUseFontSmoothing): 12 * WebCoreSupport/DumpRenderTreeSupportQt.h: 13 1 14 2013-03-15 Nate Chapin <japhet@chromium.org> 2 15 -
trunk/Source/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.cpp
r145849 r146324 39 39 #include "Element.h" 40 40 #include "FocusController.h" 41 #include "Font.h" 41 42 #include "Frame.h" 42 43 #include "FrameLoadRequest.h" … … 873 874 } 874 875 876 void DumpRenderTreeSupportQt::setShouldUseFontSmoothing(bool enabled) 877 { 878 WebCore::Font::setShouldUseSmoothing(enabled); 879 } 880 875 881 QString DumpRenderTreeSupportQt::frameRenderTreeDump(QWebFrameAdapter* adapter) 876 882 { -
trunk/Source/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.h
r145849 r146324 200 200 201 201 static void setSeamlessIFramesEnabled(bool); 202 static void setShouldUseFontSmoothing(bool); 202 203 203 204 static QString frameRenderTreeDump(QWebFrameAdapter*); -
trunk/Tools/ChangeLog
r146312 r146324 1 2013-03-19 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 Set shouldUseFontSmoothing to false to match WebKitTestRunner. 9 10 * DumpRenderTree/qt/TestRunnerQt.cpp: 11 (TestRunnerQt::reset): 12 1 13 2013-03-20 Krzysztof Czech <k.czech@samsung.com> 2 14 -
trunk/Tools/DumpRenderTree/qt/TestRunnerQt.cpp
r145940 r146324 89 89 DumpRenderTreeSupportQt::resetGeolocationMock(m_drt->pageAdapter()); 90 90 DumpRenderTreeSupportQt::dumpNotification(false); 91 DumpRenderTreeSupportQt::setShouldUseFontSmoothing(false); 91 92 setIconDatabaseEnabled(false); 92 93 clearAllDatabases();
Note: See TracChangeset
for help on using the changeset viewer.