summaryrefslogtreecommitdiff
path: root/Source/WebKit/chromium/src/WebKit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit/chromium/src/WebKit.cpp')
-rw-r--r--Source/WebKit/chromium/src/WebKit.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/WebKit/chromium/src/WebKit.cpp b/Source/WebKit/chromium/src/WebKit.cpp
index e41ce228d..a3f0f8391 100644
--- a/Source/WebKit/chromium/src/WebKit.cpp
+++ b/Source/WebKit/chromium/src/WebKit.cpp
@@ -31,6 +31,7 @@
#include "config.h"
#include "WebKit.h"
+#include "LayoutTestSupport.h"
#include "Logging.h"
#include "MutationObserver.h"
#include "Page.h"
@@ -81,7 +82,6 @@ static WebThread::TaskObserver* s_endOfTaskRunner = 0;
static bool s_webKitInitialized = false;
static WebKitPlatformSupport* s_webKitPlatformSupport = 0;
-static bool s_layoutTestMode = false;
static bool generateEntropy(unsigned char* buffer, size_t length)
{
@@ -176,12 +176,12 @@ WebKitPlatformSupport* webKitPlatformSupport()
void setLayoutTestMode(bool value)
{
- s_layoutTestMode = value;
+ WebCore::setIsRunningLayoutTest(value);
}
bool layoutTestMode()
{
- return s_layoutTestMode;
+ return WebCore::isRunningLayoutTest();
}
void enableLogChannel(const char* name)