mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:48:11 +00:00
LibWeb: Actually connect ShadowRoot to its host element
This way we can traverse from inside a shadow root across the boundary to the outside. :^)
This commit is contained in:
parent
759bfbb572
commit
a033dfc885
1 changed files with 1 additions and 0 deletions
|
@ -383,6 +383,7 @@ void Element::set_shadow_root(RefPtr<ShadowRoot> shadow_root)
|
|||
if (m_shadow_root == shadow_root)
|
||||
return;
|
||||
m_shadow_root = move(shadow_root);
|
||||
m_shadow_root->set_host(*this);
|
||||
invalidate_style();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue