ssia
Created attachment 338778 [details] Patch
Comment on attachment 338778 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=338778&action=review > Source/WebCore/layout/layouttree/LayoutBlockContainer.cpp:53 > +bool BlockContainer::establishesInlineFormattingContext() const > +{ > + // 9.4.2 Inline formatting contexts > + // An inline formatting context is established by a block container box that contains no block-level boxes. > + for (auto* child = firstInFlowChild(); child; child = child->nextInFlowSibling()) { > + if (child->isBlockLevelBox()) > + return false; > + } > + return hasInFlowOrFloatingChild(); > +} We'll probably need some sort of caching scheme for things like this. The result only changes on tree mutation after all.
Committed r231017: <https://trac.webkit.org/changeset/231017>
<rdar://problem/39732558>