Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 57fc61c0eaf09b2031d2b0bc445981b2fed0f7cd https://github.com/WebKit/WebKit/commit/57fc61c0eaf09b2031d2b0bc445981b2fed0f7cd Author: Alan Baradlay <za...@apple.com> Date: 2024-04-05 (Fri, 05 Apr 2024)
Changed paths: A LayoutTests/fast/inline/float-prevents-adjacent-content-on-zero-width-line-expected.html A LayoutTests/fast/inline/float-prevents-adjacent-content-on-zero-width-line.html M Source/WebCore/layout/formattingContexts/inline/InlineContentBalancer.cpp M Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp M Source/WebCore/layout/formattingContexts/inline/InlineFormattingUtils.cpp M Source/WebCore/layout/formattingContexts/inline/InlineFormattingUtils.h M Source/WebCore/layout/formattingContexts/inline/IntrinsicWidthHandler.cpp Log Message: ----------- (REGRESSION)[IFC] Missing content after 'float: right' in a 0px wide container https://bugs.webkit.org/show_bug.cgi?id=272180 <rdar://problem/125930179> Reviewed by Antti Koivisto. Checking whether we managed to put content on the line or we are stuck should include 1. regular inline content 2. intrusive floats at the position of the current line 3. freshly placed floats while processing the inline content This patch add #3 to the set of conditions at formattingContexts::leadingInlineItemPositionForNextLine. * LayoutTests/fast/inline/float-prevents-adjacent-content-on-zero-width-line-expected.html: Added. * LayoutTests/fast/inline/float-prevents-adjacent-content-on-zero-width-line.html: Added. * Source/WebCore/layout/formattingContexts/inline/InlineContentBalancer.cpp: (WebCore::Layout::InlineContentBalancer::initialize): * Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp: (WebCore::Layout::InlineFormattingContext::lineLayout): * Source/WebCore/layout/formattingContexts/inline/InlineFormattingUtils.cpp: (WebCore::Layout::InlineFormattingUtils::leadingInlineItemPositionForNextLine): * Source/WebCore/layout/formattingContexts/inline/InlineFormattingUtils.h: * Source/WebCore/layout/formattingContexts/inline/IntrinsicWidthHandler.cpp: (WebCore::Layout::IntrinsicWidthHandler::computedIntrinsicWidthForConstraint): Canonical link: https://commits.webkit.org/277109@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes