mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:37:45 +00:00
LibWeb: Move "visible in viewport" state tracking to ImageLoader
This should technically apply to any LayoutImage, so let's just move it to ImageLoader.
This commit is contained in:
parent
c45615128b
commit
73c9f7ebf4
7 changed files with 12 additions and 13 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue