diff options
author | Andreas Kling <kling@serenityos.org> | 2021-02-10 18:23:52 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-10 19:06:20 +0100 |
commit | e562819a7e5649d18de106d4f9e88fa9c4b4a8cb (patch) | |
tree | 4a3c51636adab939f0d408ef5537000c0c6a9b3a /Userland/Libraries/LibWeb/DOM/ShadowRoot.h | |
parent | 41ff7268db1d7821aaa194d0ba89a1b9fa493714 (diff) | |
download | serenity-e562819a7e5649d18de106d4f9e88fa9c4b4a8cb.zip |
LibWeb: Generate layout nodes for shadow subtrees
Elements with shadow roots will now recurse into those shadow trees
while building the layout tree.
This is the first step towards basic Shadow DOM support. :^)
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/ShadowRoot.h')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/ShadowRoot.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/ShadowRoot.h b/Userland/Libraries/LibWeb/DOM/ShadowRoot.h index 4bee76470d..9e9e026298 100644 --- a/Userland/Libraries/LibWeb/DOM/ShadowRoot.h +++ b/Userland/Libraries/LibWeb/DOM/ShadowRoot.h @@ -49,6 +49,10 @@ public: String mode() const { return m_closed ? "closed" : "open"; } private: + // ^Node + virtual FlyString node_name() const override { return "#shadow-root"; } + virtual RefPtr<Layout::Node> create_layout_node() override; + // NOTE: The specification doesn't seem to specify a default value for closed. Assuming false for now. bool m_closed { false }; bool m_delegates_focus { false }; |