mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 20:17:13 +02:00
LibCore: Remove macro-generated EventReceiver::try_create(...) factories
We can just use the infallible factory everywhere instead.
This commit is contained in:
committed by
Andreas Kling
parent
aec1f6aa7e
commit
bd7599ccfc
Notes:
github-actions[bot]
2025-08-11 14:56:51 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/bd7599ccfc6 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5817 Reviewed-by: https://github.com/gmta ✅
@@ -49,7 +49,7 @@ GC_DEFINE_ALLOCATOR(HTMLImageElement);
|
||||
HTMLImageElement::HTMLImageElement(DOM::Document& document, DOM::QualifiedName qualified_name)
|
||||
: HTMLElement(document, move(qualified_name))
|
||||
{
|
||||
m_animation_timer = Core::Timer::try_create().release_value_but_fixme_should_propagate_errors();
|
||||
m_animation_timer = Core::Timer::create();
|
||||
m_animation_timer->on_timeout = [this] { animate(); };
|
||||
|
||||
document.register_viewport_client(*this);
|
||||
|
||||
Reference in New Issue
Block a user