1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:57:35 +00:00

LibWeb: Make factory methods of CSS::CSSStyleDeclaration fallible

This commit is contained in:
Kenneth Myhra 2023-02-12 23:22:53 +01:00 committed by Linus Groh
parent 48872cd190
commit c950d1904a
4 changed files with 10 additions and 10 deletions

View file

@ -611,7 +611,7 @@ void Element::set_shadow_root(JS::GCPtr<ShadowRoot> shadow_root)
CSS::CSSStyleDeclaration* Element::style_for_bindings()
{
if (!m_inline_style)
m_inline_style = CSS::ElementInlineCSSStyleDeclaration::create(*this, {}, {});
m_inline_style = CSS::ElementInlineCSSStyleDeclaration::create(*this, {}, {}).release_value_but_fixme_should_propagate_errors();
return m_inline_style;
}