Index: Source/WebCore/platform/graphics/skia/OpaqueRegionSkia.cpp |
=================================================================== |
--- Source/WebCore/platform/graphics/skia/OpaqueRegionSkia.cpp (revision 127637) |
+++ Source/WebCore/platform/graphics/skia/OpaqueRegionSkia.cpp (working copy) |
@@ -182,6 +182,10 @@ |
void OpaqueRegionSkia::popCanvasLayer(const PlatformContextSkia* context) |
{ |
+ ASSERT(!m_canvasLayerStack.isEmpty()); |
+ if (m_canvasLayerStack.isEmpty()) |
+ return; |
+ |
const CanvasLayerState& canvasLayer = m_canvasLayerStack.last(); |
SkRect layerOpaqueRect = canvasLayer.opaqueRect; |
SkPaint layerPaint = canvasLayer.paint; |