summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/HTMLImageElement.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-02-25 18:42:37 +0100
committerAndreas Kling <kling@serenityos.org>2022-02-25 19:38:31 +0100
commit17f34488f6629d07476f4bc191276df0b10d541e (patch)
tree7da48d505c338e4237b73f2d844b746235e25914 /Userland/Libraries/LibWeb/HTML/HTMLImageElement.h
parentb023308f5c2f2c72ff83da9ec75e623919674623 (diff)
downloadserenity-17f34488f6629d07476f4bc191276df0b10d541e.zip
LibWeb: Implement HTMLImageElement.width and HTMLImageElement.height
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLImageElement.h')
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLImageElement.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLImageElement.h b/Userland/Libraries/LibWeb/HTML/HTMLImageElement.h
index 710db31f20..29531f56f2 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLImageElement.h
+++ b/Userland/Libraries/LibWeb/HTML/HTMLImageElement.h
@@ -28,6 +28,12 @@ public:
const Gfx::Bitmap* bitmap() const;
+ unsigned width() const;
+ void set_width(unsigned);
+
+ unsigned height() const;
+ void set_height(unsigned);
+
private:
virtual void apply_presentational_hints(CSS::StyleProperties&) const override;