Bounce between style and layout to ensure query containers have valid style.
<rdar://problem/88279976>
Created attachment 450518 [details] Patch
Comment on attachment 450518 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=450518&action=review > Source/WebCore/ChangeLog:24 > + Don't run post-layout tasks when resolving query containers. yeah, I wish there was a disposable layout type of thing where we could just run layout on the tree, produce geometry and let the rest of the update flow take care of the "final" layout including paint invalidation etc. Running the post layout tasks (even on a subsequent runloop) may also produce some unexpected results. > Source/WebCore/dom/Document.cpp:2063 > + if (frameView.layoutContext().isLayoutPending() || renderView()->needsLayout()) I'd just check FrameViewLayoutContext::needsLayout() (in addition to ^^, it also covers things like subtree layout, which may get triggered by containment)
Created attachment 450553 [details] Patch for landing
Committed r288906 (246648@main): <https://commits.webkit.org/246648@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 450553 [details].