Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1248)

Unified Diff: Source/web/WebElement.cpp

Issue 1008243003: Nuke NativeImageSkia -- new version. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add more WARN_UNUSED_RETURN goodness Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/DragClientImpl.cpp ('k') | Source/web/WebImageDecoder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « Source/web/DragClientImpl.cpp ('k') | Source/web/WebImageDecoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698