[chromium] Null-check WebViewImpl::m_client before calling invalidateRect() on it

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

Patch by James Robinson <jamesr@chromium.org> on 2012-10-29
Reviewed by Dirk Pranke.

This check was accidentally removed in r132862 and the value is null in at least some unit tests.

* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::invalidateRect):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132871 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent b1227c0d
2012-10-29 James Robinson <jamesr@chromium.org>
[chromium] Null-check WebViewImpl::m_client before calling invalidateRect() on it
https://bugs.webkit.org/show_bug.cgi?id=100716
Reviewed by Dirk Pranke.
This check was accidentally removed in r132862 and the value is null in at least some unit tests.
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::invalidateRect):
2012-10-29 Vincent Scheib <scheib@chromium.org>
Unreviewed, rolling out r132845.
......
......@@ -3849,7 +3849,7 @@ void WebViewImpl::invalidateRect(const IntRect& rect)
IntRect dirtyRect = view->windowToContents(rect);
updateLayerTreeViewport();
m_nonCompositedContentHost->invalidateRect(dirtyRect);
} else
} else if (m_client)
m_client->didInvalidateRect(rect);
}
......
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