소스 검색

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

Andreas Kling 2 년 전
부모
커밋
2626e28bb6
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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.
         // 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,
     };
 
     static NonnullOwnPtr<Task> create(Source source, DOM::Document const* document, JS::SafeFunction<void()> steps)