mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb: Handle currently ignored WebIDL::ExceptionOr<T>
s
This commit is contained in:
parent
f01d90aa63
commit
acfb546048
Notes:
sideshowbarker
2024-07-17 17:40:13 +09:00
Author: https://github.com/linusg
Commit: acfb546048
Pull-request: https://github.com/SerenityOS/serenity/pull/15862
38 changed files with 153 additions and 149 deletions
|
@ -66,14 +66,14 @@ void HTMLCanvasElement::reset_context_to_default_state()
|
|||
|
||||
void HTMLCanvasElement::set_width(unsigned value)
|
||||
{
|
||||
set_attribute(HTML::AttributeNames::width, String::number(value));
|
||||
MUST(set_attribute(HTML::AttributeNames::width, String::number(value)));
|
||||
m_bitmap = nullptr;
|
||||
reset_context_to_default_state();
|
||||
}
|
||||
|
||||
void HTMLCanvasElement::set_height(unsigned value)
|
||||
{
|
||||
set_attribute(HTML::AttributeNames::height, String::number(value));
|
||||
MUST(set_attribute(HTML::AttributeNames::height, String::number(value)));
|
||||
m_bitmap = nullptr;
|
||||
reset_context_to_default_state();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue