diff options
author | Linus Groh <mail@linusgroh.de> | 2022-10-30 17:50:04 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-10-31 14:12:44 +0000 |
commit | acfb5460488410c2bd9bf8094b72cb088d7f9cf7 (patch) | |
tree | 37afb247b8413df2601a003387f22a71cd3df615 /Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp | |
parent | f01d90aa635953abf270d2c68bae6676837986f5 (diff) | |
download | serenity-acfb5460488410c2bd9bf8094b72cb088d7f9cf7.zip |
LibWeb: Handle currently ignored `WebIDL::ExceptionOr<T>`s
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp index 0d4ff16141..f1845bdb3f 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp @@ -120,7 +120,7 @@ unsigned HTMLImageElement::width() const void HTMLImageElement::set_width(unsigned width) { - set_attribute(HTML::AttributeNames::width, String::number(width)); + MUST(set_attribute(HTML::AttributeNames::width, String::number(width))); } // https://html.spec.whatwg.org/multipage/embedded-content.html#dom-img-height @@ -148,7 +148,7 @@ unsigned HTMLImageElement::height() const void HTMLImageElement::set_height(unsigned height) { - set_attribute(HTML::AttributeNames::height, String::number(height)); + MUST(set_attribute(HTML::AttributeNames::height, String::number(height))); } // https://html.spec.whatwg.org/multipage/embedded-content.html#dom-img-naturalwidth |