Index: Source/WebCore/rendering/RenderObject.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderObject.cpp (revision 116576) |
+++ Source/WebCore/rendering/RenderObject.cpp (working copy) |
@@ -1255,9 +1255,11 @@ |
#if USE(ACCELERATED_COMPOSITING) |
if (v->usesCompositing()) { |
- RenderLayer* compLayer = enclosingLayer()->enclosingCompositingLayerForRepaint(); |
- if (compLayer) |
- repaintContainer = compLayer->renderer(); |
+ if (RenderLayer* parentLayer = enclosingLayer()) { |
+ RenderLayer* compLayer = parentLayer->enclosingCompositingLayerForRepaint(); |
+ if (compLayer) |
+ repaintContainer = compLayer->renderer(); |
+ } |
} |
#endif |