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

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

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

Powered by Google App Engine
This is Rietveld 408576698