LibWeb: Move DOM::NodeType to its own file

This is to allow using these values in libraries that otherwise do not
need to depend on LibWeb.
This commit is contained in:
Timothy Flynn 2025-02-14 10:31:44 -05:00 committed by Tim Flynn
commit 82206d2abb
Notes: github-actions[bot] 2025-02-19 13:47:43 +00:00
2 changed files with 30 additions and 16 deletions

View file

@ -15,6 +15,7 @@
#include <LibWeb/CSS/InvalidationSet.h>
#include <LibWeb/DOM/AccessibilityTreeNode.h>
#include <LibWeb/DOM/EventTarget.h>
#include <LibWeb/DOM/NodeType.h>
#include <LibWeb/DOM/Slottable.h>
#include <LibWeb/DOMParsing/XMLSerializer.h>
#include <LibWeb/TraversalDecision.h>
@ -23,22 +24,6 @@
namespace Web::DOM {
enum class NodeType : u16 {
INVALID = 0,
ELEMENT_NODE = 1,
ATTRIBUTE_NODE = 2,
TEXT_NODE = 3,
CDATA_SECTION_NODE = 4,
ENTITY_REFERENCE_NODE = 5,
ENTITY_NODE = 6,
PROCESSING_INSTRUCTION_NODE = 7,
COMMENT_NODE = 8,
DOCUMENT_NODE = 9,
DOCUMENT_TYPE_NODE = 10,
DOCUMENT_FRAGMENT_NODE = 11,
NOTATION_NODE = 12
};
enum class NameOrDescription {
Name,
Description