Chromium Code Reviews| 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 |