Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: bd47b12d76ba946d0951c2713e436fe8bfa28c4f https://github.com/WebKit/WebKit/commit/bd47b12d76ba946d0951c2713e436fe8bfa28c4f Author: Alan Baradlay <za...@apple.com> Date: 2023-11-24 (Fri, 24 Nov 2023)
Changed paths: M Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp M Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.h Log Message: ----------- [IFC][Performance] Do not run inline layout on empty (pseudo) inline content https://bugs.webkit.org/show_bug.cgi?id=264286 Reviewed by Antti Koivisto. Before/after pseudo elements often generate completely empty inline content with a single (empty) RenderText. Let's not run intrinsic width/layout on such subtrees. * Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp: (WebCore::Layout::isEmptyInlineContent): (WebCore::Layout::InlineFormattingContext::computedIntrinsicSizes): (WebCore::Layout::InlineFormattingContext::lineLayout): Canonical link: https://commits.webkit.org/271096@main _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes