| 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..388a88f50e259a60b867feb65dcceff248d8e68f 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&, Document*);
|
| + static PassRefPtrWillBeRawPtr<ImageBitmap> create(HTMLVideoElement*, const IntRect&, Document*);
|
| static PassRefPtrWillBeRawPtr<ImageBitmap> create(HTMLCanvasElement*, const IntRect&);
|
| static PassRefPtrWillBeRawPtr<ImageBitmap> create(ImageData*, const IntRect&);
|
| static PassRefPtrWillBeRawPtr<ImageBitmap> create(ImageBitmap*, const IntRect&);
|
| @@ -42,6 +42,7 @@ public:
|
| IntSize size() const;
|
|
|
| bool isNeutered() const { return m_isNeutered; }
|
| + bool originClean() const { return m_isOriginClean; }
|
| PassRefPtr<StaticBitmapImage> transfer();
|
|
|
| ~ImageBitmap() override;
|
| @@ -59,8 +60,8 @@ public:
|
| DECLARE_VIRTUAL_TRACE();
|
|
|
| private:
|
| - ImageBitmap(HTMLImageElement*, const IntRect&);
|
| - ImageBitmap(HTMLVideoElement*, const IntRect&);
|
| + ImageBitmap(HTMLImageElement*, const IntRect&, Document*);
|
| + ImageBitmap(HTMLVideoElement*, const IntRect&, Document*);
|
| ImageBitmap(HTMLCanvasElement*, const IntRect&);
|
| ImageBitmap(ImageData*, const IntRect&);
|
| ImageBitmap(ImageBitmap*, const IntRect&);
|
| @@ -73,6 +74,7 @@ private:
|
|
|
| RefPtr<StaticBitmapImage> m_image;
|
| bool m_isNeutered = false;
|
| + bool m_isOriginClean = true;
|
| };
|
|
|
| } // namespace blink
|
|
|