summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/Layout/LayoutImage.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-06-14 19:32:23 +0200
committerAndreas Kling <kling@serenityos.org>2020-06-14 19:32:23 +0200
commit73c9f7ebf4ae07492367c1c39f940603046b780e (patch)
treef4dccb566f8fc798536390211abf93d415cc2663 /Libraries/LibWeb/Layout/LayoutImage.h
parentc45615128b5bb9bc295390fff814fa7b7c843b1b (diff)
downloadserenity-73c9f7ebf4ae07492367c1c39f940603046b780e.zip
LibWeb: Move "visible in viewport" state tracking to ImageLoader
This should technically apply to any LayoutImage, so let's just move it to ImageLoader.
Diffstat (limited to 'Libraries/LibWeb/Layout/LayoutImage.h')
-rw-r--r--Libraries/LibWeb/Layout/LayoutImage.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibWeb/Layout/LayoutImage.h b/Libraries/LibWeb/Layout/LayoutImage.h
index a972d51167..f7d59dac72 100644
--- a/Libraries/LibWeb/Layout/LayoutImage.h
+++ b/Libraries/LibWeb/Layout/LayoutImage.h
@@ -45,6 +45,8 @@ public:
bool renders_as_alt_text() const;
+ void set_visible_in_viewport(Badge<LayoutDocument>, bool);
+
private:
virtual const char* class_name() const override { return "LayoutImage"; }
virtual bool is_image() const override { return true; }