diff options
Diffstat (limited to 'WebCore/platform/graphics/GeneratedImage.cpp')
-rw-r--r-- | WebCore/platform/graphics/GeneratedImage.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/WebCore/platform/graphics/GeneratedImage.cpp b/WebCore/platform/graphics/GeneratedImage.cpp index 5df2608..f2c175b 100644 --- a/WebCore/platform/graphics/GeneratedImage.cpp +++ b/WebCore/platform/graphics/GeneratedImage.cpp @@ -57,7 +57,8 @@ void GeneratedImage::drawPattern(GraphicsContext* context, const FloatRect& srcR // Create a BitmapImage and call drawPattern on it. OwnPtr<ImageBuffer> imageBuffer = ImageBuffer::create(adjustedSize); - ASSERT(imageBuffer.get()); + if (!imageBuffer) + return; // Fill with the gradient. GraphicsContext* graphicsContext = imageBuffer->context(); |