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

Unified Diff: third_party/WebKit/Source/platform/graphics/BitmapImage.cpp

Issue 1532473002: Add a origin clean flag in ImageBitmap class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: StaticBitmapImage now has a second parameter for origin clean flag Created 4 years, 11 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: third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp b/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
index 71f1aab4454813ffe452378c8de55d74052000fd..3b162fb89b655b20cb5ab27f47621ddce7f7730a 100644
--- a/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
+++ b/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
@@ -392,7 +392,7 @@ PassRefPtr<Image> BitmapImage::imageForDefaultFrame()
if (frameCount() > 1) {
RefPtr<SkImage> firstFrame = frameAtIndex(0);
if (firstFrame)
- return StaticBitmapImage::create(firstFrame);
+ return StaticBitmapImage::create(firstFrame, true);
Justin Novosad 2016/01/07 17:12:01 Really? A bitmap Image can be cross-origin.
xidachen 2016/01/08 18:07:55 Acknowledged.
}
return Image::imageForDefaultFrame();

Powered by Google App Engine
This is Rietveld 408576698