2010-08-02 Antonio Gomes <tonikitoo@webkit.org>
authortonikitoo@webkit.org <tonikitoo@webkit.org>
Tue, 3 Aug 2010 15:14:52 +0000 (15:14 +0000)
committerAntonio Gomes <tonikitoo@webkit.org>
Tue, 10 Aug 2010 13:51:30 +0000 (09:51 -0400)
commitf7143c496598414f69a163413ed7a828def86077
tree8c9bb133c745bb97e72a171eb2e659db219d52b1
parentf4f465b8411ba460398847f25b1217a10c3546b8
2010-08-02  Antonio Gomes  <tonikitoo@webkit.org>

        Reviewed by Kenneth Christiansen.

        [Qt] QtTestBrowser not setting preferredContentsSize for resizesToContents
        https://bugs.webkit.org/show_bug.cgi?id=43168

        QGraphicsWebView resizesToContents property has to work together with QWebPage's
        setPreferredContentsSize as stated by the docs. Patch addresses that for QtTestBrowser.

        * QtTestBrowser/launcherwindow.cpp:
        (LauncherWindow::applyPrefs):
        * QtTestBrowser/webview.h:
        (WebViewGraphicsBased::setCustomLayoutSize): Setter helper.
        (WebViewGraphicsBased::customLayoutSize): Getter helper.
        * QtTestBrowser/webview.cpp:
        (WebViewGraphicsBased::resizeEvent):
        (WebViewGraphicsBased::setResizesToContents): Properly handle scene, webview and viewport sizes
                                                      needed when toggle resizesToContents on/off.

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