LibWeb: Make factory method of CSS::CSSStyleRule fallible

This commit is contained in:
Kenneth Myhra 2023-02-12 23:38:05 +01:00 committed by Linus Groh
commit 4f4a908e5f
Notes: sideshowbarker 2024-07-17 18:06:52 +09:00
3 changed files with 5 additions and 4 deletions

View file

@ -3120,7 +3120,7 @@ CSSRule* Parser::convert_to_rule(NonnullRefPtr<Rule> rule)
return {};
}
return CSSStyleRule::create(m_context.realm(), move(selectors.value()), *declaration);
return CSSStyleRule::create(m_context.realm(), move(selectors.value()), *declaration).release_value_but_fixme_should_propagate_errors();
}
auto Parser::extract_properties(Vector<DeclarationOrAtRule> const& declarations_and_at_rules) -> PropertiesAndCustomProperties