summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/EventLoop/Task.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-10-03 15:38:11 +0200
committerAndreas Kling <kling@serenityos.org>2021-10-03 16:42:34 +0200
commitbbfde63f79b62080ade37051fc11a61ca132184f (patch)
treeb135f4de3ab23061705e6470adb159651e96831b /Userland/Libraries/LibWeb/HTML/EventLoop/Task.h
parent6283c098ad16a7005fac53b6c1c983dbbd3776a9 (diff)
downloadserenity-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.h2
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);