Index: Source/web/WebElement.cpp |
diff --git a/Source/web/WebElement.cpp b/Source/web/WebElement.cpp |
index de6aba3201c9f682fa7c37200c7eaa10112aee52..176166d99c4836e007a5f1d49a191ebfd6389035 100644 |
--- a/Source/web/WebElement.cpp |
+++ b/Source/web/WebElement.cpp |
@@ -158,11 +158,11 @@ WebImage WebElement::imageContents() |
if (!image) |
return WebImage(); |
- RefPtr<NativeImageSkia> bitmap = image->nativeImageForCurrentFrame(); |
- if (!bitmap) |
+ SkBitmap bitmap; |
+ if (!image->bitmapForCurrentFrame(&bitmap)) |
return WebImage(); |
- return bitmap->bitmap(); |
+ return WebImage(bitmap); |
} |
WebElement::WebElement(const PassRefPtrWillBeRawPtr<Element>& elem) |