Index: Source/WebCore/rendering/RenderLayer.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderLayer.cpp (revision 98520) |
+++ Source/WebCore/rendering/RenderLayer.cpp (working copy) |
@@ -3708,13 +3708,17 @@ |
#if USE(ACCELERATED_COMPOSITING) |
RenderLayerBacking* RenderLayer::ensureBacking() |
{ |
- if (!m_backing) |
+ if (!m_backing) { |
m_backing = adoptPtr(new RenderLayerBacking(this)); |
+ compositor()->layerBecameComposited(this); |
+ } |
return m_backing.get(); |
} |
void RenderLayer::clearBacking() |
{ |
+ if (m_backing && !renderer()->documentBeingDestroyed()) |
+ compositor()->layerBecameNonComposited(this); |
m_backing.clear(); |
} |