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