Make m_viewportConstrainedObjects into a WeakHashSet
Created attachment 392535 [details] Patch
Comment on attachment 392535 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=392535&action=review > Source/WebCore/page/FrameView.h:301 > - bool hasViewportConstrainedObjects() const { return m_viewportConstrainedObjects && m_viewportConstrainedObjects->size() > 0; } > + bool hasViewportConstrainedObjects() const { return m_viewportConstrainedObjects && m_viewportConstrainedObjects->computeSize(); } Use !m_viewportConstrainedObjects->computeEmpty() instead. computeSize() will iterate over the entire map.
Created attachment 392580 [details] Patch
Comment on attachment 392580 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=392580&action=review > Source/WebCore/page/FrameView.h:299 > + typedef WeakHashSet<RenderLayerModelObject> ViewportConstrainedObjectSet; using ViewportConstrainedObjectSet = WeakHashSet<RenderLayerModelObject>; reads better though I'm not sure this is needed in the first place.
Created attachment 392583 [details] Patch
Comment on attachment 392583 [details] Patch Clearing flags on attachment: 392583 Committed r257933: <https://trac.webkit.org/changeset/257933>
<rdar://problem/60093382>