[WK2][CoordinatedGraphics] Avoid dispensable calls to WebView::updateViewportSize()

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

Patch by Jesus Sanchez-Palencia <jesus.palencia@openbossa.org> on 2013-05-13
Reviewed by Darin Adler.

* UIProcess/CoordinatedGraphics/WebView.cpp:
(WebKit::WebView::setSize):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150024 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 7551a0ef
2013-05-13 Jesus Sanchez-Palencia <jesus.palencia@openbossa.org>
[WK2][CoordinatedGraphics] Avoid dispensable calls to WebView::updateViewportSize()
https://bugs.webkit.org/show_bug.cgi?id=116045
Reviewed by Darin Adler.
* UIProcess/CoordinatedGraphics/WebView.cpp:
(WebKit::WebView::setSize):
2013-05-13 Jon Lee <jonlee@apple.com>
[WK2] Notification manager removal should not be tied to termination of web processes
......
......@@ -77,6 +77,9 @@ void WebView::initialize()
void WebView::setSize(const WebCore::IntSize& size)
{
if (m_size == size)
return;
m_size = size;
updateViewportSize();
......
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