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

Unified Diff: third_party/WebKit/Source/core/frame/ImageBitmap.h

Issue 1532473002: Add a origin clean flag in ImageBitmap class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/frame/ImageBitmap.h
diff --git a/third_party/WebKit/Source/core/frame/ImageBitmap.h b/third_party/WebKit/Source/core/frame/ImageBitmap.h
index 59fbf3362f5c6d1b4df2c660b749340cbd4c4b32..0ffd20ae15b65b166d6b56fe77c6420d5609671e 100644
--- a/third_party/WebKit/Source/core/frame/ImageBitmap.h
+++ b/third_party/WebKit/Source/core/frame/ImageBitmap.h
@@ -28,8 +28,8 @@ class CORE_EXPORT ImageBitmap final : public RefCountedWillBeGarbageCollectedFin
DEFINE_WRAPPERTYPEINFO();
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ImageBitmap);
public:
- static PassRefPtrWillBeRawPtr<ImageBitmap> create(HTMLImageElement*, const IntRect&);
- static PassRefPtrWillBeRawPtr<ImageBitmap> create(HTMLVideoElement*, const IntRect&);
+ static PassRefPtrWillBeRawPtr<ImageBitmap> create(HTMLImageElement*, const IntRect&, bool originCleanFlag = true);
Justin Novosad 2015/12/16 03:34:35 The value of the origin clean flag should not be a
xidachen 2015/12/22 14:29:40 Done.
+ static PassRefPtrWillBeRawPtr<ImageBitmap> create(HTMLVideoElement*, const IntRect&, bool originCleanFlag = true);
Justin Novosad 2015/12/16 03:34:35 same here
xidachen 2015/12/22 14:29:40 Done.
static PassRefPtrWillBeRawPtr<ImageBitmap> create(HTMLCanvasElement*, const IntRect&);
static PassRefPtrWillBeRawPtr<ImageBitmap> create(ImageData*, const IntRect&);
static PassRefPtrWillBeRawPtr<ImageBitmap> create(ImageBitmap*, const IntRect&);
@@ -59,8 +59,8 @@ public:
DECLARE_VIRTUAL_TRACE();
private:
- ImageBitmap(HTMLImageElement*, const IntRect&);
- ImageBitmap(HTMLVideoElement*, const IntRect&);
+ ImageBitmap(HTMLImageElement*, const IntRect&, bool);
+ ImageBitmap(HTMLVideoElement*, const IntRect&, bool);
ImageBitmap(HTMLCanvasElement*, const IntRect&);
ImageBitmap(ImageData*, const IntRect&);
ImageBitmap(ImageBitmap*, const IntRect&);
@@ -73,6 +73,7 @@ private:
RefPtr<StaticBitmapImage> m_image;
bool m_isNeutered = false;
+ bool m_isOriginClean = true;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698