| Index: third_party/WebKit/Source/core/html/HTMLImageElement.h
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLImageElement.h b/third_party/WebKit/Source/core/html/HTMLImageElement.h
|
| index 97e42b416212186afda835f7cd97bbd916118818..4268e25e05028f11548f3e2b605b6eb27821b84d 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLImageElement.h
|
| +++ b/third_party/WebKit/Source/core/html/HTMLImageElement.h
|
| @@ -32,6 +32,7 @@
|
| #include "core/html/canvas/CanvasImageSource.h"
|
| #include "core/imagebitmap/ImageBitmapSource.h"
|
| #include "platform/graphics/GraphicsTypes.h"
|
| +#include "platform/heap/HeapAllocator.h"
|
| #include "platform/loader/fetch/FetchRequest.h"
|
| #include "platform/loader/fetch/ResourceResponse.h"
|
|
|
| @@ -99,6 +100,8 @@ class CORE_EXPORT HTMLImageElement final
|
| int x() const;
|
| int y() const;
|
|
|
| + ScriptPromise decode(ScriptState*, ExceptionState&);
|
| +
|
| bool complete() const;
|
|
|
| bool hasPendingActivity() const final {
|
| @@ -177,6 +180,8 @@ class CORE_EXPORT HTMLImageElement final
|
| void didAddUserAgentShadowRoot(ShadowRoot&) override;
|
| PassRefPtr<ComputedStyle> customStyleForLayoutObject() override;
|
|
|
| + void defaultEventHandler(Event*) override;
|
| +
|
| private:
|
| bool areAuthorShadowsAllowed() const override { return false; }
|
|
|
| @@ -212,6 +217,9 @@ class CORE_EXPORT HTMLImageElement final
|
| void notifyViewportChanged();
|
| void createMediaQueryListIfDoesNotExist();
|
|
|
| + void requestDecode();
|
| + void didDecode(bool success);
|
| +
|
| Member<HTMLImageLoader> m_imageLoader;
|
| Member<ViewportChangeListener> m_listener;
|
| Member<HTMLFormElement> m_form;
|
| @@ -222,8 +230,11 @@ class CORE_EXPORT HTMLImageElement final
|
| unsigned m_formWasSetByParser : 1;
|
| unsigned m_elementCreatedByParser : 1;
|
| unsigned m_isFallbackImage : 1;
|
| + HeapVector<Member<ScriptPromiseResolver>> m_decodePromiseResolvers;
|
|
|
| ReferrerPolicy m_referrerPolicy;
|
| +
|
| + WTF::WeakPtrFactory<HTMLImageElement> m_weakPtrFactory;
|
| };
|
|
|
| } // namespace blink
|
|
|