2010-08-11 Antonio Gomes <tonikitoo@webkit.org>
authorAntonio Gomes <tonikitoo@webkit.org>
Wed, 11 Aug 2010 15:57:13 +0000 (15:57 +0000)
committerSimon Hausmann <simon.hausmann@nokia.com>
Thu, 12 Aug 2010 11:41:08 +0000 (13:41 +0200)
commitb8bfbbe471d19ae0bb96ec1cdc63b4f0f1e08a42
treef514d49c49dd200c0f1022696ba2cd7406bb177c
parentb7cbbb36f4ab3d13f7dfdcbee7397b449a310f98
2010-08-11  Antonio Gomes  <tonikitoo@webkit.org>

        Reviewed by Simon Hausmann.

        [Qt] QtTestBrowser: switching between QWebView and QGraphicsWebView modes is broken
        https://bugs.webkit.org/show_bug.cgi?id=43851

        All window options data (including the bool holding if the view is either QWebView or
        QGraphicsWebView based) is stored in m_windowOptions, a class member of LauncherWindow.
        When toggle the view from QWebView to QGraphicsWebView based (and vice-versa), we were
        not updating LauncherWindow::WindowOptions::m_useGraphicsView bit, and then things were
        getting broken.

        Patch addresses this issue.

        * QtTestBrowser/launcherwindow.cpp:
        (LauncherWindow::createChrome):
        (LauncherWindow::toggleWebView):
        (LauncherWindow::toggleAcceleratedCompositing):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65160 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKitTools/ChangeLog
WebKitTools/QtTestBrowser/launcherwindow.cpp
WebKitTools/QtTestBrowser/launcherwindow.h