Explorar o código

LibWeb: Add HTML::Task::Source::NavigationAndTraversal

Andreas Kling %!s(int64=2) %!d(string=hai) anos
pai
achega
2626e28bb6
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      Userland/Libraries/LibWeb/HTML/EventLoop/Task.h

+ 3 - 0
Userland/Libraries/LibWeb/HTML/EventLoop/Task.h

@@ -35,6 +35,9 @@ public:
         // Some elements, such as the HTMLMediaElement, must have a unique task source per instance.
         // 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.
         // Keep this field last, to serve as the base value of all unique task sources.
         UniqueTaskSourceStart,
         UniqueTaskSourceStart,
+
+        // https://html.spec.whatwg.org/multipage/webappapis.html#navigation-and-traversal-task-source
+        NavigationAndTraversal,
     };
     };
 
 
     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)