summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/Node.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-11-05 17:06:19 +0100
committerAndreas Kling <kling@serenityos.org>2022-11-05 18:54:39 +0100
commit87b0ddb354191ff096b29c02de6b8814d418cb27 (patch)
tree5e1b9bb99abd92db469222ad7bbe0501274ee5c6 /Userland/Libraries/LibWeb/DOM/Node.h
parent9c46fb7337be204e26ba9c1aeb8ac2aace8dff7a (diff)
downloadserenity-87b0ddb354191ff096b29c02de6b8814d418cb27.zip
LibWeb: Add DOM::Node::parent_or_shadow_host_element()
This will be used in style computation to inherit style across shadow tree boundaries.
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/Node.h')
-rw-r--r--Userland/Libraries/LibWeb/DOM/Node.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Node.h b/Userland/Libraries/LibWeb/DOM/Node.h
index 7e0dd8ec0b..a0dd4bda03 100644
--- a/Userland/Libraries/LibWeb/DOM/Node.h
+++ b/Userland/Libraries/LibWeb/DOM/Node.h
@@ -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.