mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-21 15:14:13 +00:00
LibWeb: Let style elements remember which StyleSheetList they live in
Instead of trying to locate the relevant StyleSheetList on style element removal from the DOM, we now simply keep a pointer to the list instead. This fixes an issue where using attachShadow() on an element that had a declarative shadow DOM would cause any style elements present to use the wrong StyleSheetList when removing themselves from the tree.
This commit is contained in:
committed by
Andreas Kling
parent
2064be708f
commit
8543b8ad6a
@@ -46,7 +46,7 @@ void HTMLStyleElement::inserted()
|
||||
|
||||
void HTMLStyleElement::removed_from(Node* old_parent)
|
||||
{
|
||||
m_style_element_utils.update_a_style_block(*this, old_parent);
|
||||
m_style_element_utils.update_a_style_block(*this);
|
||||
Base::removed_from(old_parent);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user