1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:27:43 +00:00

LibWeb: Convert ShadowRoot to use TRY for error propagation

This commit is contained in:
Linus Groh 2022-03-22 12:40:10 +00:00
parent a68d31debd
commit 46bb547dd6

View file

@ -39,9 +39,7 @@ String ShadowRoot::inner_html() const
// https://w3c.github.io/DOM-Parsing/#dom-innerhtml-innerhtml
ExceptionOr<void> ShadowRoot::set_inner_html(String const& markup)
{
auto result = DOMParsing::inner_html_setter(*this, markup);
if (result.is_exception())
return result.exception();
TRY(DOMParsing::inner_html_setter(*this, markup));
set_needs_style_update(true);
return {};