[webkit-changes] [WebKit/WebKit] 7bdac4: [LFC][IFC] Introduce the concept of "placed" float...
alan
noreply at github.com
Sun Sep 4 15:57:08 PDT 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7bdac4ad13a42aa7e8e0a06a02ed40ac2930f6f6
https://github.com/WebKit/WebKit/commit/7bdac4ad13a42aa7e8e0a06a02ed40ac2930f6f6
Author: Alan Bujtas <zalan at apple.com>
Date: 2022-09-04 (Sun, 04 Sep 2022)
Changed paths:
M Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp
M Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp
M Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.h
M Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayContentBuilder.cpp
Log Message:
-----------
[LFC][IFC] Introduce the concept of "placed" float boxes
https://bugs.webkit.org/show_bug.cgi?id=244739
Reviewed by Antti Koivisto.
This is in preparation for supporting cases where
1. the float does not fit the line (not placed)
2. but there's still available space for inline content
In such cases the overflowing floats should go to the subsequent lines, but they should not terminate the line itself. This patch rename m_floats to m_placedFloats to emphasize that these floats have their final positions.
* Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp:
(WebCore::Layout::InlineFormattingContext::computedIntrinsicWidthForConstraint const):
* Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp:
(WebCore::Layout::LineBuilder::layoutInlineContent):
(WebCore::Layout::LineBuilder::computedIntrinsicWidth):
(WebCore::Layout::LineBuilder::initialize):
(WebCore::Layout::LineBuilder::placeInlineContent):
(WebCore::Layout::LineBuilder::close):
(WebCore::Layout::LineBuilder::handleFloatContent):
(WebCore::Layout::LineBuilder::rebuildLineWithInlineContent):
* Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.h:
* Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayContentBuilder.cpp:
(WebCore::Layout::InlineDisplayContentBuilder::processFloatBoxes):
Canonical link: https://commits.webkit.org/254151@main
More information about the webkit-changes
mailing list