Index: Source/WebCore/platform/graphics/chromium/GraphicsLayerChromium.cpp |
=================================================================== |
--- Source/WebCore/platform/graphics/chromium/GraphicsLayerChromium.cpp (revision 93831) |
+++ Source/WebCore/platform/graphics/chromium/GraphicsLayerChromium.cpp (working copy) |
@@ -102,12 +102,21 @@ |
GraphicsLayerChromium::~GraphicsLayerChromium() |
{ |
- if (m_layer) |
+ if (m_layer) { |
m_layer->setOwner(0); |
- if (m_contentsLayer) |
+ if (m_layer->ccLayerImpl()) |
+ m_layer->ccLayerImpl()->clearRenderSurface(); |
+ } |
+ if (m_contentsLayer) { |
m_contentsLayer->setOwner(0); |
- if (m_transformLayer) |
+ if (m_contentsLayer->ccLayerImpl()) |
+ m_contentsLayer->ccLayerImpl()->clearRenderSurface(); |
+ } |
+ if (m_transformLayer) { |
m_transformLayer->setOwner(0); |
+ if (m_transformLayer->ccLayerImpl()) |
+ m_transformLayer->ccLayerImpl()->clearRenderSurface(); |
+ } |
} |
void GraphicsLayerChromium::setName(const String& inName) |