[webkit-changes] [WebKit/WebKit] 101786: [LFC][IFC] Introduce BlockLayoutState
Alan Baradlay
noreply at github.com
Fri Nov 11 06:12:07 PST 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 10178633f995c1b1d12184d2b73592838f0d18d7
https://github.com/WebKit/WebKit/commit/10178633f995c1b1d12184d2b73592838f0d18d7
Author: Alan Baradlay <zalan at apple.com>
Date: 2022-11-11 (Fri, 11 Nov 2022)
Changed paths:
M Source/WebCore/WebCore.xcodeproj/project.pbxproj
A Source/WebCore/layout/formattingContexts/block/BlockLayoutState.h
M Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp
M Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.h
M Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp
Log Message:
-----------
[LFC][IFC] Introduce BlockLayoutState
https://bugs.webkit.org/show_bug.cgi?id=247780
Reviewed by Antti Koivisto.
In many cases child IFCs need to know about parent block level layout state. E.g how many lines the block still needs across sibling IFCs
when line-clamp is present, or where the intrusive, BFC level floats are.
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/layout/formattingContexts/block/BlockLayoutState.h: Added.
(WebCore::Layout::BlockLayoutState::lineClamp const):
(WebCore::Layout::BlockLayoutState::setLineClamp):
* Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp:
(WebCore::Layout::InlineFormattingContext::layoutInFlowContentForIntegration):
* Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.h:
* Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp:
(WebCore::LayoutIntegration::LineLayout::layout):
Canonical link: https://commits.webkit.org/256570@main
More information about the webkit-changes
mailing list