Changeset 294198 in webkit
- Timestamp:
- May 14, 2022 9:56:07 AM (2 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r294197 r294198 1 2022-05-14 Alan Bujtas <zalan@apple.com> 2 3 [FFC][Integration] Add "fixed sized/all default value" flex layout 4 https://bugs.webkit.org/show_bug.cgi?id=240414 5 6 Reviewed by Antti Koivisto. 7 8 This patch adds support for the simplest possible flex layout (fixed size, no-wrap, no-reversed etc). 9 10 * layout/formattingContexts/flex/FlexFormattingContext.cpp: 11 (WebCore::Layout::FlexFormattingContext::layoutInFlowContentForIntegration): 12 1 13 2022-05-14 Kimmo Kinnunen <kkinnunen@apple.com> 2 14 -
trunk/Source/WebCore/layout/formattingContexts/flex/FlexFormattingContext.cpp
r293303 r294198 119 119 } 120 120 121 void FlexFormattingContext::layoutInFlowContentForIntegration(const ConstraintsForInFlowContent& )121 void FlexFormattingContext::layoutInFlowContentForIntegration(const ConstraintsForInFlowContent& constraints) 122 122 { 123 auto& formattingState = this->formattingState(); 124 auto mainAxisPosition = constraints.horizontal().logicalLeft; 125 auto crossAxisPosition = constraints.logicalTop(); 126 for (auto& flexItem : childrenOfType<ContainerBox>(root())) { 127 auto& flexItemGeometry = formattingState.boxGeometry(flexItem); 128 129 flexItemGeometry.setLogicalTopLeft({ mainAxisPosition, crossAxisPosition }); 130 mainAxisPosition = BoxGeometry::borderBoxRect(flexItemGeometry).right(); 131 } 123 132 } 124 133
Note: See TracChangeset
for help on using the changeset viewer.