Index: Source/core/html/HTMLCanvasElement.cpp |
diff --git a/Source/core/html/HTMLCanvasElement.cpp b/Source/core/html/HTMLCanvasElement.cpp |
index 5780844c5bb9ea8df58e85c1974398f2bbe6a2e1..092ad8a133e730b9f1ba141f7af7b983ab396ac2 100644 |
--- a/Source/core/html/HTMLCanvasElement.cpp |
+++ b/Source/core/html/HTMLCanvasElement.cpp |
@@ -517,7 +517,7 @@ void HTMLCanvasElement::createImageBufferInternal() |
// See CanvasRenderingContext2D::State::State() for more information. |
m_imageBuffer->context()->setMiterLimit(10); |
m_imageBuffer->context()->setStrokeThickness(1); |
-#if !ASSERT_DISABLED |
+#if ASSERT_ENABLED |
m_imageBuffer->context()->disableDestructionChecks(); // 2D canvas is allowed to leave context in an unfinalized state. |
#endif |
m_contextStateSaver = adoptPtr(new GraphicsContextStateSaver(*m_imageBuffer->context())); |