mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 09:12:13 -05:00
LibWeb: Mark a few calls to set_attribute as infallible
These cannot possibly throw an exception because the attribute names are already known to be valid.
This commit is contained in:
parent
b43bb2429a
commit
e95096d2a9
Notes:
github-actions[bot]
2025-01-15 07:47:49 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/e95096d2a99 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3257 Reviewed-by: https://github.com/gmta ✅
3 changed files with 3 additions and 3 deletions
|
@ -38,7 +38,7 @@ public:
|
|||
WebIDL::Long value();
|
||||
void set_value(WebIDL::Long value)
|
||||
{
|
||||
set_attribute(AttributeNames::value, String::number(value)).release_value_but_fixme_should_propagate_errors();
|
||||
MUST(set_attribute(AttributeNames::value, String::number(value)));
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
|
@ -25,7 +25,7 @@ public:
|
|||
WebIDL::Long start();
|
||||
void set_start(WebIDL::Long start)
|
||||
{
|
||||
set_attribute(AttributeNames::start, String::number(start)).release_value_but_fixme_should_propagate_errors();
|
||||
MUST(set_attribute(AttributeNames::start, String::number(start)));
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
|
@ -37,7 +37,7 @@ void HTMLSummaryElement::activation_behavior(DOM::Event const&)
|
|||
if (parent->has_attribute(HTML::AttributeNames::open))
|
||||
parent->remove_attribute(HTML::AttributeNames::open);
|
||||
else
|
||||
parent->set_attribute(HTML::AttributeNames::open, String {}).release_value_but_fixme_should_propagate_errors();
|
||||
MUST(parent->set_attribute(HTML::AttributeNames::open, String {}));
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/interactive-elements.html#summary-for-its-parent-details
|
||||
|
|
Loading…
Reference in a new issue