Title: [140716] trunk/Source/WebKit/chromium
Revision
140716
Author
[email protected]
Date
2013-01-24 13:31:00 -0800 (Thu, 24 Jan 2013)

Log Message

[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):

Modified Paths

Diff

Modified: trunk/Source/WebKit/chromium/ChangeLog (140715 => 140716)


--- trunk/Source/WebKit/chromium/ChangeLog	2013-01-24 21:16:32 UTC (rev 140715)
+++ trunk/Source/WebKit/chromium/ChangeLog	2013-01-24 21:31:00 UTC (rev 140716)
@@ -1,3 +1,16 @@
+2013-01-24  James Robinson  <[email protected]>
+
+        [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  <[email protected]>
 
         [CSSRegions] remove setExperimentalCSSRegionsEnabled deprecated API in Source/WebKit/chromium/public/WebSettings.h

Modified: trunk/Source/WebKit/chromium/src/WebViewImpl.cpp (140715 => 140716)


--- trunk/Source/WebKit/chromium/src/WebViewImpl.cpp	2013-01-24 21:16:32 UTC (rev 140715)
+++ trunk/Source/WebKit/chromium/src/WebViewImpl.cpp	2013-01-24 21:31:00 UTC (rev 140716)
@@ -3957,7 +3957,8 @@
     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) {
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to