Commit d0e91083 authored by jamesr@google.com's avatar jamesr@google.com

[chromium] Null check WebLayerTreeView before dereffing in WebViewImpl::invalidateRect

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

Reviewed by Adrienne Walker.

During frame shutdown, WebViewImpl::m_layerTreeView may become 0 while commits are deferred but we still
may get invalidateRect() calls before shutdown completes.

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

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140716 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 0874c202
2013-01-24 James Robinson <jamesr@chromium.org>
[chromium] Null check WebLayerTreeView before dereffing in WebViewImpl::invalidateRect
https://bugs.webkit.org/show_bug.cgi?id=107855
Reviewed by Adrienne Walker.
During frame shutdown, WebViewImpl::m_layerTreeView may become 0 while commits are deferred but we still
may get invalidateRect() calls before shutdown completes.
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::invalidateRect):
2013-01-24 Mihai Maerean <mmaerean@adobe.com>
[CSSRegions] remove setExperimentalCSSRegionsEnabled deprecated API in Source/WebKit/chromium/public/WebSettings.h
......
......@@ -3957,7 +3957,8 @@ void WebViewImpl::invalidateRect(const IntRect& rect)
if (m_layerTreeViewCommitsDeferred) {
// If we receive an invalidation from WebKit while in deferred commit mode,
// that means it's time to start producing frames again so un-defer.
m_layerTreeView->setDeferCommits(false);
if (m_layerTreeView)
m_layerTreeView->setDeferCommits(false);
m_layerTreeViewCommitsDeferred = false;
}
if (m_isAcceleratedCompositingActive) {
......
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