Commit 43c5da8c authored by enne@google.com's avatar enne@google.com

[chromium] Fix crash when compositing gets disabled mid-paint

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

Reviewed by James Robinson.

WebKit paint can disable compositing and call setRootLayer(0). Adding
a check for this in drawLayers prevents a null pointer deref.

* platform/graphics/chromium/LayerRendererChromium.cpp:
(WebCore::LayerRendererChromium::drawLayers):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@90587 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent fdc63c6e
2011-07-07 Adrienne Walker <enne@google.com>
[chromium] Fix crash when compositing gets disabled mid-paint
https://bugs.webkit.org/show_bug.cgi?id=64119
Reviewed by James Robinson.
WebKit paint can disable compositing and call setRootLayer(0). Adding
a check for this in drawLayers prevents a null pointer deref.
* platform/graphics/chromium/LayerRendererChromium.cpp:
(WebCore::LayerRendererChromium::drawLayers):
2011-07-07 Dirk Schulze <krit@webkit.org>
SVGAnimateTransform does not support calcMode=discrete
......
......@@ -480,7 +480,7 @@ void LayerRendererChromium::paintLayerContents(const LayerList& renderSurfaceLay
void LayerRendererChromium::drawLayers(const LayerList& renderSurfaceLayerList)
{
if (m_viewportVisibleRect.isEmpty())
if (m_viewportVisibleRect.isEmpty() || !m_rootLayer)
return;
TRACE_EVENT("LayerRendererChromium::drawLayers", this, 0);
......
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