mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 06:48:49 +00:00
LibWeb: Add HTML::Task::Source to model "generic task sources"
This commit is contained in:
parent
462120d900
commit
bc3a432cb2
Notes:
sideshowbarker
2024-07-18 04:24:40 +09:00
Author: https://github.com/awesomekling
Commit: bc3a432cb2
2 changed files with 17 additions and 5 deletions
|
@ -9,8 +9,9 @@
|
|||
|
||||
namespace Web::HTML {
|
||||
|
||||
Task::Task(DOM::Document* document, Function<void()> steps)
|
||||
: m_steps(move(steps))
|
||||
Task::Task(Source source, DOM::Document* document, Function<void()> steps)
|
||||
: m_source(source)
|
||||
, m_steps(move(steps))
|
||||
, m_document(document)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue