mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-19 16:51:52 +00:00
LibWeb: Make factory method of CSS::ResolvedCSSStyleDeclaration fallible
This commit is contained in:
parent
f28b8431bf
commit
8fbd43cb27
Notes:
sideshowbarker
2024-07-17 05:02:42 +09:00
Author: https://github.com/kennethmyhra
Commit: 8fbd43cb27
Pull-request: https://github.com/SerenityOS/serenity/pull/17491
Reviewed-by: https://github.com/linusg ✅
4 changed files with 5 additions and 5 deletions
|
@ -20,9 +20,9 @@
|
|||
|
||||
namespace Web::CSS {
|
||||
|
||||
ResolvedCSSStyleDeclaration* ResolvedCSSStyleDeclaration::create(DOM::Element& element)
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<ResolvedCSSStyleDeclaration>> ResolvedCSSStyleDeclaration::create(DOM::Element& element)
|
||||
{
|
||||
return element.realm().heap().allocate<ResolvedCSSStyleDeclaration>(element.realm(), element).release_allocated_value_but_fixme_should_propagate_errors();
|
||||
return MUST_OR_THROW_OOM(element.realm().heap().allocate<ResolvedCSSStyleDeclaration>(element.realm(), element));
|
||||
}
|
||||
|
||||
ResolvedCSSStyleDeclaration::ResolvedCSSStyleDeclaration(DOM::Element& element)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue