mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 17:27:34 +00:00
LibWeb: Cache pseudo element layout nodes weakly on DOM::Element
Having the cache be strong created a reference cycle between DOM nodes and their pseudo elements.
This commit is contained in:
parent
e23fe8cf87
commit
8412206cb4
2 changed files with 4 additions and 4 deletions
|
@ -188,7 +188,7 @@ private:
|
|||
|
||||
Vector<FlyString> m_classes;
|
||||
|
||||
Array<RefPtr<Layout::Node>, CSS::Selector::PseudoElementCount> m_pseudo_element_nodes;
|
||||
Array<WeakPtr<Layout::Node>, CSS::Selector::PseudoElementCount> m_pseudo_element_nodes;
|
||||
};
|
||||
|
||||
template<>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue