mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 03:09:08 +00:00
LibCore: Stop obsessing about tiny OOMs in Core::Timer
Work towards #20405
This commit is contained in:
@@ -26,11 +26,11 @@ JS_DEFINE_ALLOCATOR(HTMLTextAreaElement);
|
||||
|
||||
HTMLTextAreaElement::HTMLTextAreaElement(DOM::Document& document, DOM::QualifiedName qualified_name)
|
||||
: HTMLElement(document, move(qualified_name))
|
||||
, m_input_event_timer(MUST(Core::Timer::create_single_shot(0, [weak_this = make_weak_ptr()]() {
|
||||
, m_input_event_timer(Core::Timer::create_single_shot(0, [weak_this = make_weak_ptr()]() {
|
||||
if (!weak_this)
|
||||
return;
|
||||
static_cast<HTMLTextAreaElement*>(weak_this.ptr())->queue_firing_input_event();
|
||||
})))
|
||||
}))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user