mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:57:45 +00:00
LibWeb: Add shadow including ancestor/descendant checks
This commit is contained in:
parent
dd5ceb74e9
commit
bd55f0ad64
2 changed files with 38 additions and 0 deletions
|
@ -174,6 +174,11 @@ public:
|
|||
// Used for dumping the DOM Tree
|
||||
void serialize_tree_as_json(JsonObjectSerializer<StringBuilder>&) const;
|
||||
|
||||
bool is_shadow_including_descendant_of(Node const&) const;
|
||||
bool is_shadow_including_inclusive_descendant_of(Node const&) const;
|
||||
bool is_shadow_including_ancestor_of(Node const&) const;
|
||||
bool is_shadow_including_inclusive_ancestor_of(Node const&) const;
|
||||
|
||||
protected:
|
||||
Node(Document&, NodeType);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue