2010-08-09 Antonio Gomes <tonikitoo@webkit.org>
authortonikitoo@webkit.org <tonikitoo@webkit.org>
Tue, 10 Aug 2010 04:00:26 +0000 (04:00 +0000)
committerAntonio Gomes <tonikitoo@webkit.org>
Tue, 10 Aug 2010 13:51:35 +0000 (09:51 -0400)
commit4512af77708ef6e0127626bfcdfa0076c6cd3a1a
tree59ece3fb83a2db731817c3419768a0d398cb45a8
parent1d625d5f3bd2dfa1494d2ae2af6521b918b8cc75
2010-08-09  Antonio Gomes  <tonikitoo@webkit.org>

        eviewed by Ariya Hidayat.

        [Qt] QtTestBrowser: proper set scene rect

        When resizesToContents is ON scene's rect is set to the boundary of
        the mainFrame. However, navigating to other web page should keep resizing
        scene's rect according to the new document loaded. Patch addresses this issue.

        Now resizesToContents and scrolling properly work on QtTestBrowser.

        * QtTestBrowser/webview.cpp:
        (WebViewGraphicsBased::setPage):
        (WebViewGraphicsBased::contentsSizeChanged):
        (WebViewGraphicsBased::setResizesToContents):
        (WebViewGraphicsBased::resizeEvent):
        * QtTestBrowser/webview.h:

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