LibWeb: Place the unique task source used by media elements last

In the merging of an extremely large navigables PR, a task queue source
was added after the unique task source start value that was supposed to
remain last in the enum.
This commit is contained in:
Zaggy1024 2023-06-30 05:44:20 -05:00 committed by Andreas Kling
parent bfd6deed1e
commit 8157bb601b
Notes: sideshowbarker 2024-07-17 22:01:16 +09:00

View File

@ -32,15 +32,15 @@ public:
TimerTask,
JavaScriptEngine,
// Some elements, such as the HTMLMediaElement, must have a unique task source per instance.
// Keep this field last, to serve as the base value of all unique task sources.
UniqueTaskSourceStart,
// https://html.spec.whatwg.org/multipage/webappapis.html#navigation-and-traversal-task-source
NavigationAndTraversal,
// https://w3c.github.io/FileAPI/#fileReadingTaskSource
FileReading,
// Some elements, such as the HTMLMediaElement, must have a unique task source per instance.
// Keep this field last, to serve as the base value of all unique task sources.
UniqueTaskSourceStart,
};
static NonnullOwnPtr<Task> create(Source source, DOM::Document const* document, JS::SafeFunction<void()> steps)