12012-07-04 Andras Becsi <andras.becsi@nokia.com>
2
3 [Qt][WK2] Improve visible content rect update
4 https://bugs.webkit.org/show_bug.cgi?id=90547
5
6 Reviewed by NOBODY (OOPS!).
7
8 Avoid the extra work of computing the visible rect multiple
9 times within the notification function and set a correct
10 fixed visible content rect during page load.
11 Also make sure that notifications with a null trajectory
12 vector reach the backing store since a null vector means
13 that all tiles around the viewport were requested.
14
15 * UIProcess/qt/QtViewportHandler.cpp:
16 (WebKit::ViewportUpdateDeferrer::~ViewportUpdateDeferrer):
17 (WebKit::QtViewportHandler::informVisibleContentChange):
18 (WebKit::QtViewportHandler::viewportItemSizeChanged):
19 * UIProcess/qt/QtViewportHandler.h:
20 (QtViewportHandler):
21 * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
22 (WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage):
23 * WebProcess/WebPage/LayerTreeCoordinator/LayerTreeCoordinator.cpp:
24 (WebKit::LayerTreeCoordinator::setVisibleContentsRect):
25