1
Fork 0
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:
Andreas Kling 2022-10-16 18:23:02 +02:00
parent e23fe8cf87
commit 8412206cb4
2 changed files with 4 additions and 4 deletions

View file

@ -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<>