Changeset 254388 in webkit


Ignore:
Timestamp:
Jan 10, 2020 6:49:47 PM (4 years ago)
Author:
Alan Bujtas
Message:

[LFC] TableFormattingContext::layoutTableCellBox should take HorizontalConstraints
https://bugs.webkit.org/show_bug.cgi?id=206075
<rdar://problem/58483791>

Reviewed by Antti Koivisto.

  • layout/tableformatting/TableFormattingContext.cpp:

(WebCore::Layout::TableFormattingContext::layoutInFlowContent):
(WebCore::Layout::TableFormattingContext::layoutTableCellBox):

  • layout/tableformatting/TableFormattingContext.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r254384 r254388  
     12020-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
    1142020-01-10  Simon Fraser  <simon.fraser@apple.com>
    215
  • trunk/Source/WebCore/layout/tableformatting/TableFormattingContext.cpp

    r254336 r254388  
    5959}
    6060
    61 void TableFormattingContext::layoutInFlowContent(InvalidationState& invalidationState, const HorizontalConstraints&, const VerticalConstraints&)
     61void TableFormattingContext::layoutInFlowContent(InvalidationState& invalidationState, const HorizontalConstraints& horizontalConstraints, const VerticalConstraints&)
    6262{
    6363    auto& grid = formattingState().tableGrid();
     
    8080    for (auto& cell : cellList) {
    8181        auto& cellLayoutBox = cell->tableCellBox;
    82         layoutTableCellBox(cellLayoutBox, columnList.at(cell->position.x()), invalidationState);
     82        layoutTableCellBox(cellLayoutBox, columnList.at(cell->position.x()), invalidationState, horizontalConstraints);
    8383        // FIXME: Add support for column and row spanning and this requires a 2 pass layout.
    8484        auto& row = grid.rows().at(cell->position.y());
     
    9898}
    9999
    100 void TableFormattingContext::layoutTableCellBox(const Box& cellLayoutBox, const TableGrid::Column& column, InvalidationState& invalidationState)
    101 {
    102     auto horizontalConstraints = Geometry::horizontalConstraintsForInFlow(geometryForBox(*cellLayoutBox.containingBlock()));
     100void TableFormattingContext::layoutTableCellBox(const Box& cellLayoutBox, const TableGrid::Column& column, InvalidationState& invalidationState, const HorizontalConstraints& horizontalConstraints)
     101{
    103102    computeBorderAndPadding(cellLayoutBox, horizontalConstraints);
    104103    // Margins do not apply to internal table elements.
  • trunk/Source/WebCore/layout/tableformatting/TableFormattingContext.h

    r254270 r254388  
    6060
    6161    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&);
    6363    void positionTableCells();
    6464    void setComputedGeometryForRows();
Note: See TracChangeset for help on using the changeset viewer.