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

Unified Diff: Source/web/WebElement.cpp

Issue 1001703003: Take NativeImageSkia out behind the woodshed. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Make bitmapForCurrentFrame() return SkBitmap by value. 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
Index: Source/web/WebElement.cpp
diff --git a/Source/web/WebElement.cpp b/Source/web/WebElement.cpp
index de6aba3201c9f682fa7c37200c7eaa10112aee52..af484abcc2d61880ee9f09bfa652d763b1c0ac88 100644
--- a/Source/web/WebElement.cpp
+++ b/Source/web/WebElement.cpp
@@ -158,11 +158,7 @@ WebImage WebElement::imageContents()
if (!image)
return WebImage();
- RefPtr<NativeImageSkia> bitmap = image->nativeImageForCurrentFrame();
- if (!bitmap)
- return WebImage();
-
- return bitmap->bitmap();
+ return WebImage(image->bitmapForCurrentFrame());
}
WebElement::WebElement(const PassRefPtrWillBeRawPtr<Element>& elem)

Powered by Google App Engine
This is Rietveld 408576698