1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:57:46 +00:00

LibWeb: Add DOM::Node::parent_or_shadow_host_element()

This will be used in style computation to inherit style across shadow
tree boundaries.
This commit is contained in:
Andreas Kling 2022-11-05 17:06:19 +01:00
parent 9c46fb7337
commit 87b0ddb354
2 changed files with 16 additions and 0 deletions

View file

@ -45,6 +45,9 @@ public:
ParentNode* parent_or_shadow_host();
ParentNode const* parent_or_shadow_host() const { return const_cast<Node*>(this)->parent_or_shadow_host(); }
Element* parent_or_shadow_host_element();
Element const* parent_or_shadow_host_element() const { return const_cast<Node*>(this)->parent_or_shadow_host_element(); }
virtual ~Node();
// FIXME: Move cleanup to the regular destructor.