Changeset 254388 in webkit
- Timestamp:
- Jan 10, 2020 6:49:47 PM (4 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r254384 r254388 1 2020-01-10 Zalan Bujtas <zalan@apple.com> 2 3 [LFC] TableFormattingContext::layoutTableCellBox should take HorizontalConstraints 4 https://bugs.webkit.org/show_bug.cgi?id=206075 5 <rdar://problem/58483791> 6 7 Reviewed by Antti Koivisto. 8 9 * layout/tableformatting/TableFormattingContext.cpp: 10 (WebCore::Layout::TableFormattingContext::layoutInFlowContent): 11 (WebCore::Layout::TableFormattingContext::layoutTableCellBox): 12 * layout/tableformatting/TableFormattingContext.h: 13 1 14 2020-01-10 Simon Fraser <simon.fraser@apple.com> 2 15 -
trunk/Source/WebCore/layout/tableformatting/TableFormattingContext.cpp
r254336 r254388 59 59 } 60 60 61 void TableFormattingContext::layoutInFlowContent(InvalidationState& invalidationState, const HorizontalConstraints& , const VerticalConstraints&)61 void TableFormattingContext::layoutInFlowContent(InvalidationState& invalidationState, const HorizontalConstraints& horizontalConstraints, const VerticalConstraints&) 62 62 { 63 63 auto& grid = formattingState().tableGrid(); … … 80 80 for (auto& cell : cellList) { 81 81 auto& cellLayoutBox = cell->tableCellBox; 82 layoutTableCellBox(cellLayoutBox, columnList.at(cell->position.x()), invalidationState );82 layoutTableCellBox(cellLayoutBox, columnList.at(cell->position.x()), invalidationState, horizontalConstraints); 83 83 // FIXME: Add support for column and row spanning and this requires a 2 pass layout. 84 84 auto& row = grid.rows().at(cell->position.y()); … … 98 98 } 99 99 100 void TableFormattingContext::layoutTableCellBox(const Box& cellLayoutBox, const TableGrid::Column& column, InvalidationState& invalidationState) 101 { 102 auto horizontalConstraints = Geometry::horizontalConstraintsForInFlow(geometryForBox(*cellLayoutBox.containingBlock())); 100 void TableFormattingContext::layoutTableCellBox(const Box& cellLayoutBox, const TableGrid::Column& column, InvalidationState& invalidationState, const HorizontalConstraints& horizontalConstraints) 101 { 103 102 computeBorderAndPadding(cellLayoutBox, horizontalConstraints); 104 103 // Margins do not apply to internal table elements. -
trunk/Source/WebCore/layout/tableformatting/TableFormattingContext.h
r254270 r254388 60 60 61 61 IntrinsicWidthConstraints computedIntrinsicWidthConstraints() override; 62 void layoutTableCellBox(const Box& cellLayoutBox, const TableGrid::Column&, InvalidationState& );62 void layoutTableCellBox(const Box& cellLayoutBox, const TableGrid::Column&, InvalidationState&, const HorizontalConstraints&); 63 63 void positionTableCells(); 64 64 void setComputedGeometryForRows();
Note: See TracChangeset
for help on using the changeset viewer.