diff options
author | Andreas Kling <kling@serenityos.org> | 2021-10-03 15:38:11 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-03 16:42:34 +0200 |
commit | bbfde63f79b62080ade37051fc11a61ca132184f (patch) | |
tree | b135f4de3ab23061705e6470adb159651e96831b /Userland/Libraries/LibWeb/HTML/EventLoop/Task.h | |
parent | 6283c098ad16a7005fac53b6c1c983dbbd3776a9 (diff) | |
download | serenity-bbfde63f79b62080ade37051fc11a61ca132184f.zip |
LibWeb: Only take runnable tasks from the HTML task queue
We were previously willing to execute tasks before they had become
runnable.
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/EventLoop/Task.h')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/EventLoop/Task.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/EventLoop/Task.h b/Userland/Libraries/LibWeb/HTML/EventLoop/Task.h index 9b9402f3cc..51947f58d3 100644 --- a/Userland/Libraries/LibWeb/HTML/EventLoop/Task.h +++ b/Userland/Libraries/LibWeb/HTML/EventLoop/Task.h @@ -40,6 +40,8 @@ public: DOM::Document* document() { return m_document; } DOM::Document const* document() const { return m_document; } + bool is_runnable() const; + private: Task(Source, DOM::Document*, Function<void()> steps); |