For safety, and to allow more sharing in the future.
Created attachment 427032 [details] patch
Comment on attachment 427032 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=427032&action=review > Source/WebCore/style/StyleResolver.h:83 > +class Resolver : public RefCounted<Resolver> { > public: Should we iso-heap this? > Source/WebCore/style/StyleScope.h:180 > HashSet<const Element*> m_elementsInHeadWithPendingSheets; > HashSet<const Element*> m_elementsInBodyWithPendingSheets; Yikes. We should use WeakHashSet for these! > Source/WebCore/style/StyleTreeResolver.h:73 > Scope* enclosingScope { nullptr }; Should this be RefPtr<Scope> as well?
Created attachment 427035 [details] patch
Committed r276588 (237024@main): <https://commits.webkit.org/237024@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 427035 [details].
<rdar://problem/77150042>