Index: Source/web/WebGraphicsContextImpl.cpp |
diff --git a/Source/web/WebGraphicsContextImpl.cpp b/Source/web/WebGraphicsContextImpl.cpp |
index 2effc1b5d8c10b495fd56f2415c8f1a482e3668a..d40c99f06b8421895790a8a007fa673119036a0a 100644 |
--- a/Source/web/WebGraphicsContextImpl.cpp |
+++ b/Source/web/WebGraphicsContextImpl.cpp |
@@ -30,10 +30,8 @@ WebCanvas* WebGraphicsContextImpl::beginDrawing(const WebFloatRect& bounds) |
ASSERT(!m_hasBegunDrawing); |
m_hasBegunDrawing = true; |
#endif |
+ ASSERT(!DrawingRecorder::useCachedDrawingIfPossible(m_graphicsContext, m_client, m_type)); |
m_drawingRecorder = adoptPtr(new DrawingRecorder(m_graphicsContext, m_client, m_type, bounds)); |
- |
- ASSERT(!m_drawingRecorder->canUseCachedDrawing()); |
- |
WebCanvas* canvas = m_graphicsContext.canvas(); |
ASSERT(canvas); |
return canvas; |