LibWeb: Make Element::set_shadow_root() disconnect any previous root

This commit is contained in:
Andreas Kling 2022-03-16 00:26:40 +01:00
commit b1096c2ae4
Notes: sideshowbarker 2024-07-17 17:20:27 +09:00
4 changed files with 7 additions and 4 deletions

View file

@ -29,7 +29,7 @@ public:
Element* host() { return m_host; }
Element const* host() const { return m_host; }
void set_host(Element& host) { m_host = host; }
void set_host(Element* host) { m_host = host; }
private:
// https://dom.spec.whatwg.org/#concept-documentfragment-host