<rdar://88995157>
Created attachment 452269 [details] Patch v1.0
Comment on attachment 452269 [details] Patch v1.0 View in context: https://bugs.webkit.org/attachment.cgi?id=452269&action=review r=me, neato :) > Source/WebCore/inspector/agents/InspectorDOMAgent.cpp:-365 > - m_flexibleBoxRendererCachedItemsAtStartOfLine.clear(); I agree that it's *probably* fine to not clear since it's a `WeakHashSet`, but I am afraid this could easily be proven an incorrect analysis. Would it make sense to clear this inside `relayoutDocument` since we're gonna do a full layout anyways (and therefore probably immediately re-fill `m_flexibleBoxRendererCachedItemsAtStartOfLine`)?
Created attachment 452376 [details] Patch v1.1
Comment on attachment 452269 [details] Patch v1.0 View in context: https://bugs.webkit.org/attachment.cgi?id=452269&action=review >> Source/WebCore/inspector/agents/InspectorDOMAgent.cpp:-365 >> - m_flexibleBoxRendererCachedItemsAtStartOfLine.clear(); > > I agree that it's *probably* fine to not clear since it's a `WeakHashSet`, but I am afraid this could easily be proven an incorrect analysis. Would it make sense to clear this inside `relayoutDocument` since we're gonna do a full layout anyways (and therefore probably immediately re-fill `m_flexibleBoxRendererCachedItemsAtStartOfLine`)? Good point - I've added it to `relayoutDocument()` since we will be getting the new info anyways.
Committed r290047 (247419@main): <https://commits.webkit.org/247419@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 452376 [details].