Title: [144081] trunk/Tools
- Revision
- 144081
- Author
- [email protected]
- Date
- 2013-02-26 11:21:26 -0800 (Tue, 26 Feb 2013)
Log Message
[chromium] content shell drt: Enable WebKit::setLayoutTestMode()
https://bugs.webkit.org/show_bug.cgi?id=110890
Reviewed by Jochen Eisinger.
Several functions in webkit check that bit to change rendering
in layout test mode. For example, platform/graphics/skia/FrontSkia.cpp
disables font smoothing in this mode. TestShell and DRT both set
this flag, so content shell drt should set it too.
* DumpRenderTree/chromium/TestRunner/src/TestInterfaces.cpp:
(WebTestRunner::TestInterfaces::TestInterfaces):
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (144080 => 144081)
--- trunk/Tools/ChangeLog 2013-02-26 19:12:22 UTC (rev 144080)
+++ trunk/Tools/ChangeLog 2013-02-26 19:21:26 UTC (rev 144081)
@@ -1,3 +1,18 @@
+2013-02-26 Nico Weber <[email protected]>
+
+ [chromium] content shell drt: Enable WebKit::setLayoutTestMode()
+ https://bugs.webkit.org/show_bug.cgi?id=110890
+
+ Reviewed by Jochen Eisinger.
+
+ Several functions in webkit check that bit to change rendering
+ in layout test mode. For example, platform/graphics/skia/FrontSkia.cpp
+ disables font smoothing in this mode. TestShell and DRT both set
+ this flag, so content shell drt should set it too.
+
+ * DumpRenderTree/chromium/TestRunner/src/TestInterfaces.cpp:
+ (WebTestRunner::TestInterfaces::TestInterfaces):
+
2013-02-26 Vivek Galatage <[email protected]>
new-commit-bot: Fix the unit test newcommitbot-unittest.py due to r144040
Modified: trunk/Tools/DumpRenderTree/chromium/TestRunner/src/TestInterfaces.cpp (144080 => 144081)
--- trunk/Tools/DumpRenderTree/chromium/TestRunner/src/TestInterfaces.cpp 2013-02-26 19:12:22 UTC (rev 144080)
+++ trunk/Tools/DumpRenderTree/chromium/TestRunner/src/TestInterfaces.cpp 2013-02-26 19:21:26 UTC (rev 144081)
@@ -37,6 +37,7 @@
#include "TestRunner.h"
#include "TextInputController.h"
#include "WebCache.h"
+#include "WebKit.h"
#include "WebRuntimeFeatures.h"
#include <public/WebString.h>
#include <public/WebURL.h>
@@ -56,6 +57,8 @@
, m_webView(0)
, m_delegate(0)
{
+ WebKit::setLayoutTestMode(true);
+
WebRuntimeFeatures::enableDataTransferItems(true);
WebRuntimeFeatures::enableDeviceMotion(false);
WebRuntimeFeatures::enableGeolocation(true);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes