mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +00:00
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:
parent
bfd6deed1e
commit
8157bb601b
Notes:
sideshowbarker
2024-07-17 22:01:16 +09:00
Author: https://github.com/Zaggy1024 Commit: https://github.com/SerenityOS/serenity/commit/8157bb601b Pull-request: https://github.com/SerenityOS/serenity/pull/19716
|
@ -32,15 +32,15 @@ public:
|
||||||
TimerTask,
|
TimerTask,
|
||||||
JavaScriptEngine,
|
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
|
// https://html.spec.whatwg.org/multipage/webappapis.html#navigation-and-traversal-task-source
|
||||||
NavigationAndTraversal,
|
NavigationAndTraversal,
|
||||||
|
|
||||||
// https://w3c.github.io/FileAPI/#fileReadingTaskSource
|
// https://w3c.github.io/FileAPI/#fileReadingTaskSource
|
||||||
FileReading,
|
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)
|
static NonnullOwnPtr<Task> create(Source source, DOM::Document const* document, JS::SafeFunction<void()> steps)
|
||||||
|
|
Loading…
Reference in a new issue