summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/cairo/ImageSourceCairo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/graphics/cairo/ImageSourceCairo.cpp')
-rw-r--r--WebCore/platform/graphics/cairo/ImageSourceCairo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/WebCore/platform/graphics/cairo/ImageSourceCairo.cpp b/WebCore/platform/graphics/cairo/ImageSourceCairo.cpp
index c6d54f2..b51caf6 100644
--- a/WebCore/platform/graphics/cairo/ImageSourceCairo.cpp
+++ b/WebCore/platform/graphics/cairo/ImageSourceCairo.cpp
@@ -190,13 +190,13 @@ NativeImagePtr ImageSource::createFrameAtIndex(size_t index)
// Cairo does not like zero height images.
// If we have a zero height image, just pretend we don't have enough data yet.
- if (!buffer->height())
+ if (!size().height())
return 0;
return cairo_image_surface_create_for_data((unsigned char*)buffer->bytes().data(),
CAIRO_FORMAT_ARGB32,
size().width(),
- buffer->height(),
+ size().height(),
size().width()*4);
}