Changeset 294996 in webkit
- Timestamp:
- May 28, 2022 6:21:48 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/layout/formattingContexts/flex/FlexFormattingContext.cpp
r294995 r294996 227 227 for (size_t index = 0; index < logicalFlexItemList.size(); ++index) { 228 228 auto& flexItem = logicalFlexItemList[index]; 229 auto baseSize = flexItem.rect.width(); 230 if (auto shrinkValue = flexItem.layoutBox->style().flexShrink()) { 229 auto& style = flexItem.layoutBox->style(); 230 auto baseSize = style.flexBasis().isFixed() ? LayoutUnit { style.flexBasis().value() } : flexItem.rect.width(); 231 if (auto shrinkValue = style.flexShrink()) { 231 232 auto flexShrink = shrinkValue * baseSize; 232 233 shrinkingItems.append({ flexShrink, formattingState.intrinsicWidthConstraintsForBox(*flexItem.layoutBox)->minimum, baseSize, flexItem, { } });
Note: See TracChangeset
for help on using the changeset viewer.