mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:07:45 +00:00
LibWeb: Generalize ImageBox and ImagePaintable for any ImageProvider
They currently assume the DOM node is an HTMLImageElement with respect to handling the alt attribute. The HTMLInputElement will require the same behavior.
This commit is contained in:
parent
c4295edc81
commit
45a47cb32b
10 changed files with 45 additions and 8 deletions
|
@ -29,7 +29,7 @@ public:
|
|||
auto const& image_provider() const { return m_image_provider; }
|
||||
auto& image_provider() { return m_image_provider; }
|
||||
|
||||
void dom_node_did_update_alt_text(Badge<HTML::HTMLImageElement>);
|
||||
void dom_node_did_update_alt_text(Badge<ImageProvider>);
|
||||
|
||||
private:
|
||||
ImageProvider const& m_image_provider;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue