Changeset 295081 in webkit
- Timestamp:
- May 31, 2022 10:27:39 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/layout/formattingContexts/flex/FlexFormattingContext.cpp
r295051 r295081 153 153 FlexRect marginRect; 154 154 int logicalOrder { 0 }; 155 CheckedPtr<const ContainerBox> layoutBox; 155 156 }; 156 157 … … 202 203 previousLogicalOrder = flexItemOrder; 203 204 204 flexItemList.append({ { logicalSize }, flexItemOrder });205 flexItemList.append({ { logicalSize }, flexItemOrder, downcast<ContainerBox>(flexItem) }); 205 206 } 206 207 }; … … 218 219 219 220 auto logicalFlexItemList = FlexLayout::LogicalFlexItems(flexItemList.size()); 220 auto* layoutBox = root().firstInFlowChild(); 221 for (size_t index = 0; index < flexItemList.size(); ++index) { 222 logicalFlexItemList[index] = { flexItemList[index].marginRect, downcast<ContainerBox>(layoutBox) }; 223 layoutBox = layoutBox->nextInFlowSibling(); 224 } 221 for (size_t index = 0; index < flexItemList.size(); ++index) 222 logicalFlexItemList[index] = { flexItemList[index].marginRect, flexItemList[index].layoutBox }; 225 223 return logicalFlexItemList; 226 224 }
Note: See TracChangeset
for help on using the changeset viewer.