mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-25 11:48:06 +00:00
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:
parent
0fc1d4cd69
commit
82206d2abb
Notes:
github-actions[bot]
2025-02-19 13:47:43 +00:00
Author: https://github.com/trflynn89
Commit: 82206d2abb
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3589
Reviewed-by: https://github.com/ADKaster
2 changed files with 30 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue