| Index: Source/core/html/HTMLCanvasElement.cpp
|
| diff --git a/Source/core/html/HTMLCanvasElement.cpp b/Source/core/html/HTMLCanvasElement.cpp
|
| index 9b67ff43787a43927977af725a7c7a65dd0b646a..737f7fb5fea854996ca309abbd6bfbdc52ab697f 100644
|
| --- a/Source/core/html/HTMLCanvasElement.cpp
|
| +++ b/Source/core/html/HTMLCanvasElement.cpp
|
| @@ -567,8 +567,10 @@
|
|
|
| GraphicsContext* HTMLCanvasElement::existingDrawingContext() const
|
| {
|
| - if (!hasImageBuffer())
|
| + if (m_didFailToCreateImageBuffer) {
|
| + ASSERT(!hasImageBuffer());
|
| return 0;
|
| + }
|
|
|
| return drawingContext();
|
| }
|
|
|