Changeset 294237 in webkit
- Timestamp:
- May 16, 2022 9:33:38 AM (2 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r294234 r294237 1 2022-05-16 Alan Bujtas <zalan@apple.com> 2 3 [LFC][FFC] Add "flex-direction: column-reverse" basic visual/logical conversion 4 https://bugs.webkit.org/show_bug.cgi?id=240434 5 6 Reviewed by Antti Koivisto. 7 8 With "flex-direction: column-reverse" the main axis progression is from visual bottom to top (with default writing mode and all that). 9 10 * layout/formattingContexts/flex/FlexFormattingContext.cpp: 11 (WebCore::Layout::FlexFormattingContext::layoutInFlowContentForIntegration): 12 1 13 2022-05-16 Patrick Angle <pangle@apple.com> 2 14 -
trunk/Source/WebCore/layout/formattingContexts/flex/FlexFormattingContext.cpp
r294233 r294237 145 145 break; 146 146 case FlexDirection::Column: 147 case FlexDirection::ColumnReverse: 147 148 logicalSize = { flexItemGeometry.marginBoxHeight(), flexItemGeometry.marginBoxWidth() }; 148 break;149 case FlexDirection::ColumnReverse:150 ASSERT_NOT_IMPLEMENTED_YET();151 149 break; 152 150 default: … … 169 167 auto convertLogicalToVisual = [&] { 170 168 // FIXME: Convert logical coordinates to visual. 169 auto logicalWidth = logicalFlexItemList.last().rect.right() - logicalFlexItemList.first().rect.left(); 171 170 auto direction = root().style().flexDirection(); 172 171 for (auto& logicalFlexItem : logicalFlexItemList) { … … 187 186 } 188 187 case FlexDirection::ColumnReverse: 189 ASSERT_NOT_IMPLEMENTED_YET();188 topLeft = { constraints.horizontal().logicalLeft + logicalFlexItem.rect.top(), constraints.logicalTop() + logicalWidth - logicalFlexItem.rect.right() }; 190 189 break; 191 190 default:
Note: See TracChangeset
for help on using the changeset viewer.