mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-20 16:13:21 +00:00
28 lines
390 B
C++
28 lines
390 B
C++
![]() |
/*
|
||
|
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
|
||
|
*
|
||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||
|
*/
|
||
|
|
||
|
#include <LibWeb/DOM/Document.h>
|
||
|
#include <LibWeb/HTML/EventLoop/Task.h>
|
||
|
|
||
|
namespace Web::HTML {
|
||
|
|
||
|
Task::Task(DOM::Document* document, Function<void()> steps)
|
||
|
: m_steps(move(steps))
|
||
|
, m_document(document)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
Task::~Task()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
void Task::execute()
|
||
|
{
|
||
|
m_steps();
|
||
|
}
|
||
|
|
||
|
}
|