1
Fork 0
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:
Luke Wilde 2021-09-02 02:17:13 +01:00 committed by Andreas Kling
parent dd5ceb74e9
commit bd55f0ad64
2 changed files with 38 additions and 0 deletions

View file

@ -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);