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

Unified Diff: third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp

Issue 1532473002: Add a origin clean flag in ImageBitmap class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compilation error 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/core/imagebitmap/ImageBitmapFactories.cpp
diff --git a/third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp b/third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp
index 11a21fd51dd61280d4534dc294876fe36bc2c1e6..c9226d939a5158532489f3f4d7f978fe94950f35 100644
--- a/third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp
+++ b/third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp
@@ -183,13 +183,14 @@ void ImageBitmapFactories::ImageBitmapLoader::didFinishLoading()
return;
}
- RefPtr<Image> image = StaticBitmapImage::create(frame);
+ RefPtr<StaticBitmapImage> image = StaticBitmapImage::create(frame);
+ image->setOriginClean(true);
if (!m_cropRect.width() && !m_cropRect.height()) {
// No cropping variant was called.
m_cropRect = IntRect(IntPoint(), image->size());
}
- RefPtrWillBeRawPtr<ImageBitmap> imageBitmap = ImageBitmap::create(image.get(), m_cropRect);
+ RefPtrWillBeRawPtr<ImageBitmap> imageBitmap = ImageBitmap::create(image, m_cropRect);
m_resolver->resolve(imageBitmap.release());
m_factory->didFinishLoading(this);
}

Powered by Google App Engine
This is Rietveld 408576698