1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:38:11 +00:00

LibWeb: Implement HTMLImageElement.complete

This was fairly straightforward, although a small part had to be ad-hoc
since we don't yet load images through Fetch.

With this, we can now see annotation labels on deskto.ps :^)
This commit is contained in:
Andreas Kling 2022-10-03 14:54:27 +02:00
parent 9749eda09f
commit 0455af4441
3 changed files with 27 additions and 0 deletions

View file

@ -40,6 +40,9 @@ public:
unsigned natural_width() const;
unsigned natural_height() const;
// https://html.spec.whatwg.org/multipage/embedded-content.html#dom-img-complete
bool complete() const;
private:
HTMLImageElement(DOM::Document&, DOM::QualifiedName);