|
@@ -9,6 +9,7 @@
|
|
#include <AK/ByteBuffer.h>
|
|
#include <AK/ByteBuffer.h>
|
|
#include <AK/OwnPtr.h>
|
|
#include <AK/OwnPtr.h>
|
|
#include <LibGfx/Forward.h>
|
|
#include <LibGfx/Forward.h>
|
|
|
|
+#include <LibWeb/DOM/Document.h>
|
|
#include <LibWeb/DOM/DocumentLoadEventDelayer.h>
|
|
#include <LibWeb/DOM/DocumentLoadEventDelayer.h>
|
|
#include <LibWeb/HTML/BrowsingContext.h>
|
|
#include <LibWeb/HTML/BrowsingContext.h>
|
|
#include <LibWeb/HTML/CORSSettingAttribute.h>
|
|
#include <LibWeb/HTML/CORSSettingAttribute.h>
|
|
@@ -23,7 +24,7 @@ class HTMLImageElement final
|
|
: public HTMLElement
|
|
: public HTMLElement
|
|
, public FormAssociatedElement
|
|
, public FormAssociatedElement
|
|
, public Layout::ImageProvider
|
|
, public Layout::ImageProvider
|
|
- , public BrowsingContext::ViewportClient {
|
|
|
|
|
|
+ , public DOM::Document::ViewportClient {
|
|
WEB_PLATFORM_OBJECT(HTMLImageElement, HTMLElement);
|
|
WEB_PLATFORM_OBJECT(HTMLImageElement, HTMLElement);
|
|
FORM_ASSOCIATED_ELEMENT(HTMLElement, HTMLImageElement)
|
|
FORM_ASSOCIATED_ELEMENT(HTMLElement, HTMLImageElement)
|
|
|
|
|
|
@@ -99,11 +100,13 @@ private:
|
|
virtual void initialize(JS::Realm&) override;
|
|
virtual void initialize(JS::Realm&) override;
|
|
virtual void finalize() override;
|
|
virtual void finalize() override;
|
|
|
|
|
|
|
|
+ virtual void adopted_from(DOM::Document&) override;
|
|
|
|
+
|
|
virtual void apply_presentational_hints(CSS::StyleProperties&) const override;
|
|
virtual void apply_presentational_hints(CSS::StyleProperties&) const override;
|
|
|
|
|
|
virtual JS::GCPtr<Layout::Node> create_layout_node(NonnullRefPtr<CSS::StyleProperties>) override;
|
|
virtual JS::GCPtr<Layout::Node> create_layout_node(NonnullRefPtr<CSS::StyleProperties>) override;
|
|
|
|
|
|
- virtual void browsing_context_did_set_viewport_rect(CSSPixelRect const&) override;
|
|
|
|
|
|
+ virtual void did_set_viewport_rect(CSSPixelRect const&) override;
|
|
|
|
|
|
void handle_successful_fetch(AK::URL const&, StringView mime_type, ImageRequest&, ByteBuffer, bool maybe_omit_events, AK::URL const& previous_url);
|
|
void handle_successful_fetch(AK::URL const&, StringView mime_type, ImageRequest&, ByteBuffer, bool maybe_omit_events, AK::URL const& previous_url);
|
|
void handle_failed_fetch();
|
|
void handle_failed_fetch();
|