LibWeb/HTML: Don't return any errors for update_the_img_data

There should not be any exceptions to propagate, so let's update
the return type accordingly.
This commit is contained in:
Shannon Booth 2025-06-21 14:44:03 +12:00 committed by Jelle Raaijmakers
parent 3383a781f6
commit bc85a9bace
Notes: github-actions[bot] 2025-06-24 07:57:38 +00:00
2 changed files with 4 additions and 5 deletions

View file

@ -76,7 +76,7 @@ public:
void react_to_changes_in_the_environment();
// https://html.spec.whatwg.org/multipage/images.html#update-the-image-data
ErrorOr<void> update_the_image_data(bool restart_the_animations = false, bool maybe_omit_events = false);
void update_the_image_data(bool restart_the_animations = false, bool maybe_omit_events = false);
// https://html.spec.whatwg.org/multipage/images.html#use-srcset-or-picture
[[nodiscard]] bool uses_srcset_or_picture() const;