LibCore: Stop obsessing about tiny OOMs in Core::Timer

Work towards #20405
This commit is contained in:
Andreas Kling
2024-04-16 20:34:01 +02:00
parent bf1c82724f
commit 1cb5385a29
52 changed files with 111 additions and 113 deletions

View File

@@ -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();
})))
}))
{
}