diff options
author | Andreas Kling <kling@serenityos.org> | 2022-11-05 17:06:19 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-11-05 18:54:39 +0100 |
commit | 87b0ddb354191ff096b29c02de6b8814d418cb27 (patch) | |
tree | 5e1b9bb99abd92db469222ad7bbe0501274ee5c6 /Userland/Libraries/LibWeb/DOM/Node.h | |
parent | 9c46fb7337be204e26ba9c1aeb8ac2aace8dff7a (diff) | |
download | serenity-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.h | 3 |
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. |