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

Unified Diff: Source/platform/graphics/Image.cpp

Issue 388253004: Drawing an animated image to a canvas now behave as expected (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Correcting bug and moving logic to HTMLImageElenemt Created 6 years, 5 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/platform/graphics/Image.cpp
diff --git a/Source/platform/graphics/Image.cpp b/Source/platform/graphics/Image.cpp
index 55a8ac41462db62ea55f91c17508dfbf7162daa8..4248cf6180d9de491c6205dbad92d1225865bf9b 100644
--- a/Source/platform/graphics/Image.cpp
+++ b/Source/platform/graphics/Image.cpp
@@ -237,4 +237,11 @@ void Image::computeIntrinsicDimensions(Length& intrinsicWidth, Length& intrinsic
intrinsicHeight = Length(intrinsicRatio.height(), Fixed);
}
+PassRefPtr<Image> Image::imageForDefaultFrame()
+{
+ RefPtr<Image> image(this);
+
+ return image.release();
+}
+
}
« Source/core/html/canvas/CanvasRenderingContext2D.cpp ('K') | « Source/platform/graphics/Image.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698