| Index: Source/testing/runner/TestInterfaces.cpp
|
| diff --git a/Source/testing/runner/TestInterfaces.cpp b/Source/testing/runner/TestInterfaces.cpp
|
| index 8756149b2e5edb50b4f60bca4d900136d0569188..e218e1e404ab86948e89269026fdbd9529e66dbe 100644
|
| --- a/Source/testing/runner/TestInterfaces.cpp
|
| +++ b/Source/testing/runner/TestInterfaces.cpp
|
| @@ -196,8 +196,10 @@ const vector<WebTestProxyBase*>& TestInterfaces::windowList()
|
|
|
| WebThemeEngine* TestInterfaces::themeEngine()
|
| {
|
| -#if defined(USE_DEFAULT_RENDER_THEME) || !(defined(WIN32) || defined(__APPLE__))
|
| - return 0;
|
| +#if defined(USE_DEFAULT_RENDER_THEME)
|
| + if (!m_themeEngine.get())
|
| + m_themeEngine.reset(new WebTestThemeEngineMock());
|
| + return m_themeEngine.get();
|
| #elif defined(WIN32)
|
| if (!m_themeEngine.get())
|
| m_themeEngine.reset(new WebTestThemeEngineWin());
|
| @@ -206,6 +208,8 @@ WebThemeEngine* TestInterfaces::themeEngine()
|
| if (!m_themeEngine.get())
|
| m_themeEngine.reset(new WebTestThemeEngineMac());
|
| return m_themeEngine.get();
|
| +#else
|
| + return 0;
|
| #endif
|
| }
|
|
|
|
|