[WK2] Setting m_pageScaleFactor directly in WebPageProxy::scalePage

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

Reviewed by Simon Fraser.

When the client side sets the scale factor, the UIProcess will send the message to WebProcess and only after
WebPageProxy::pageScaleFactorDidChange is called the desired scale factor is returned correctly by
WebPageProxy::pageScaleFactor.
This will avoid the client side retrieve a wrong scale factor while UIProcess and WebProcess gets synchronized.

* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::scalePage):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162382 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent ef291d28
2014-01-20 Thiago de Barros Lacerda <thiago.lacerda@openbossa.org>
[WK2] Setting m_pageScaleFactor directly in WebPageProxy::scalePage
https://bugs.webkit.org/show_bug.cgi?id=127090
Reviewed by Simon Fraser.
When the client side sets the scale factor, the UIProcess will send the message to WebProcess and only after
WebPageProxy::pageScaleFactorDidChange is called the desired scale factor is returned correctly by
WebPageProxy::pageScaleFactor.
This will avoid the client side retrieve a wrong scale factor while UIProcess and WebProcess gets synchronized.
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::scalePage):
2014-01-20 Zan Dobersek <zdobersek@igalia.com>
[GTK][WK2] Move the rest of GTK's WorkQueue implementation to std::function
......
......@@ -1595,6 +1595,7 @@ void WebPageProxy::scalePage(double scale, const IntPoint& origin)
if (!isValid())
return;
m_pageScaleFactor = scale;
m_process->send(Messages::WebPage::ScalePage(scale, origin), m_pageID);
}
......
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