Changeset 109555 in webkit


Ignore:
Timestamp:
Mar 2, 2012 4:45:05 AM (12 years ago)
Author:
Simon Hausmann
Message:

[Qt] Fix tests run with WTR not using QStyle theme
https://bugs.webkit.org/show_bug.cgi?id=80147

Reviewed by Csaba Osztrogonác.

Source/WebKit2:

Use an environment variable (set by WTR) to select the QStyle theme.
This is a temporary kludge until we rebase the layout tests to use the
QStyle independent "mobile" theme. This also temporarily breaks the
force_static_libs_as_shared build.

  • Target.pri:
  • WebProcess/qt/WebProcessMainQt.cpp:

(WebKit::WebProcessMainQt):

Tools:

  • WebKitTestRunner/qt/main.cpp:

(main): Set environment variable for web process to use QStyle theme.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r109552 r109555  
     12012-03-02  Simon Hausmann  <simon.hausmann@nokia.com>
     2
     3        [Qt] Fix tests run with WTR not using QStyle theme
     4        https://bugs.webkit.org/show_bug.cgi?id=80147
     5
     6        Reviewed by Csaba Osztrogonác.
     7
     8        Use an environment variable (set by WTR) to select the QStyle theme.
     9        This is a temporary kludge until we rebase the layout tests to use the
     10        QStyle independent "mobile" theme. This also temporarily breaks the
     11        force_static_libs_as_shared build.
     12
     13        * Target.pri:
     14        * WebProcess/qt/WebProcessMainQt.cpp:
     15        (WebKit::WebProcessMainQt):
     16
    1172012-03-02  Simon Hausmann  <simon.hausmann@nokia.com>
    218
  • trunk/Source/WebKit2/Target.pri

    r109552 r109555  
    726726    WebProcess/qt/WebProcessQt.cpp
    727727
     728INCLUDEPATH += ../WebKit/qt/WebCoreSupport
    728729
    729730mac: {
  • trunk/Source/WebKit2/WebProcess/qt/WebProcessMainQt.cpp

    r105475 r109555  
    4444#endif
    4545
     46#include "RenderThemeQStyle.h"
     47#include "ScrollbarThemeQStyle.h"
     48
    4649#ifndef NDEBUG
    4750#if !OS(WINDOWS)
     
    204207    WebGraphicsLayer::initFactory();
    205208#endif
     209    if (!qgetenv("QT_WEBKIT_USE_QSTYLE_THEME").isEmpty())
     210        RenderThemeQt::setCustomTheme(RenderThemeQStyle::create, new ScrollbarThemeQStyle);
    206211
    207212    WebKit::WebProcess::shared().initialize(identifier, RunLoop::main());
  • trunk/Tools/ChangeLog

    r109554 r109555  
     12012-03-02  Simon Hausmann  <simon.hausmann@nokia.com>
     2
     3        [Qt] Fix tests run with WTR not using QStyle theme
     4        https://bugs.webkit.org/show_bug.cgi?id=80147
     5
     6        Reviewed by Csaba Osztrogonác.
     7
     8        * WebKitTestRunner/qt/main.cpp:
     9        (main): Set environment variable for web process to use QStyle theme.
     10
    1112012-03-02  Philippe Normand  <pnormand@igalia.com>
    212
  • trunk/Tools/WebKitTestRunner/qt/main.cpp

    r106658 r109555  
    9393    }
    9494
     95    qputenv("QT_WEBKIT_USE_QSTYLE_THEME", "1");
     96
    9597    QQuickWebViewExperimental::setFlickableViewportEnabled(false);
    9698    QApplication app(argc, argv);
Note: See TracChangeset for help on using the changeset viewer.