Instead of the LayoutState. We'll use the formatting context to limit access to display boxes.
<rdar://problem/54895959>
Created attachment 377749 [details] Patch
Comment on attachment 377749 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=377749&action=review > Source/WebCore/layout/FormattingContextQuirks.cpp:56 > + auto verticalMargin = Geometry(formattingContext()).computedVerticalMargin(*containingBlock, usedValues); You could do formattingContext().geometry().computedVerticalMargin() here and elsewhere
Comment on attachment 377749 [details] Patch Clearing flags on attachment: 377749 Committed r249349: <https://trac.webkit.org/changeset/249349>
All reviewed patches have been landed. Closing bug.
(In reply to Antti Koivisto from comment #3) > Comment on attachment 377749 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=377749&action=review > > > Source/WebCore/layout/FormattingContextQuirks.cpp:56 > > + auto verticalMargin = Geometry(formattingContext()).computedVerticalMargin(*containingBlock, usedValues); > > You could do > > formattingContext().geometry().computedVerticalMargin() > > here and elsewhere That's indeed a good idea. Let me do it in a separate patch.