[Qt][WK2] Add missing ViewportUpdateDeferrer guarding to setPageItemRectVisible() calls.

https://bugs.webkit.org/show_bug.cgi?id=87936

Patch by Zalan Bujtas <zbujtas@gmail.com> on 2012-05-31
Reviewed by Kenneth Rohde Christiansen.

* UIProcess/qt/QtViewportInteractionEngine.cpp:
(WebKit::QtViewportInteractionEngine::viewportAttributesChanged):
(WebKit::QtViewportInteractionEngine::pageContentsSizeChanged):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@119095 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent d619e5c5
2012-05-31 Zalan Bujtas <zbujtas@gmail.com>
[Qt][WK2] Add missing ViewportUpdateDeferrer guarding to setPageItemRectVisible() calls.
https://bugs.webkit.org/show_bug.cgi?id=87936
Reviewed by Kenneth Rohde Christiansen.
* UIProcess/qt/QtViewportInteractionEngine.cpp:
(WebKit::QtViewportInteractionEngine::viewportAttributesChanged):
(WebKit::QtViewportInteractionEngine::pageContentsSizeChanged):
2012-05-31 Keunsoon Lee <keunsoon.lee@samsung.com>
[EFL][WK2] Add WKURLRequestEfl and WKURLResponseEfl
......
......@@ -200,6 +200,7 @@ void QtViewportInteractionEngine::viewportAttributesChanged(const WebCore::Viewp
// If the web app successively changes the viewport on purpose
// it wants to be in control and we should disable animations.
ViewportUpdateDeferrer guard(this);
setPageItemRectVisible(nearestValidBounds());
}
......@@ -221,6 +222,7 @@ void QtViewportInteractionEngine::pageContentsSizeChanged(const QSize& newSize,
// we didn't do scale adjustment.
emit m_viewportItem->experimental()->test()->contentsScaleCommitted();
ViewportUpdateDeferrer guard(this);
setPageItemRectVisible(nearestValidBounds());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment