⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 263845 in webkit


Ignore:
Timestamp:
Jul 2, 2020, 7:52:20 AM (6 years ago)
Author:
Alan Bujtas
Message:

[LFC][IFC] Use <tr> computed height as minimum height for the row
https://bugs.webkit.org/show_bug.cgi?id=213880

Reviewed by Antti Koivisto.

Source/WebCore:

Test: fast/layoutformattingcontext/table-fixed-row-height-simple.html

  • layout/tableformatting/TableLayout.cpp:

(WebCore::Layout::TableFormattingContext::TableLayout::distributedVerticalSpace):

LayoutTests:

  • fast/layoutformattingcontext/table-fixed-row-height-simple-expected.html: Added.
  • fast/layoutformattingcontext/table-fixed-row-height-simple.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r263844 r263845  
     12020-07-02  Zalan Bujtas  <zalan@apple.com>
     2
     3        [LFC][IFC] Use <tr> computed height as minimum height for the row
     4        https://bugs.webkit.org/show_bug.cgi?id=213880
     5
     6        Reviewed by Antti Koivisto.
     7
     8        * fast/layoutformattingcontext/table-fixed-row-height-simple-expected.html: Added.
     9        * fast/layoutformattingcontext/table-fixed-row-height-simple.html: Added.
     10
    1112020-07-02  Youenn Fablet  <youenn@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r263844 r263845  
     12020-07-02  Zalan Bujtas  <zalan@apple.com>
     2
     3        [LFC][IFC] Use <tr> computed height as minimum height for the row
     4        https://bugs.webkit.org/show_bug.cgi?id=213880
     5
     6        Reviewed by Antti Koivisto.
     7
     8        Test: fast/layoutformattingcontext/table-fixed-row-height-simple.html
     9
     10        * layout/tableformatting/TableLayout.cpp:
     11        (WebCore::Layout::TableFormattingContext::TableLayout::distributedVerticalSpace):
     12
    1132020-07-02  Youenn Fablet  <youenn@apple.com>
    214
  • trunk/Source/WebCore/layout/tableformatting/TableLayout.cpp

    r263805 r263845  
    268268        auto maximumColumnAscent = InlineLayoutUnit { };
    269269        auto maximumColumnDescent = InlineLayoutUnit { };
     270        // Initial minimum height is the computed height if available <tr style="height: 100px"><td></td></tr>
     271        rowHeight[rowIndex] = formattingContext().geometry().computedHeight(rows.list()[rowIndex].box(), availableVerticalSpace).valueOr(0_lu);
    270272        for (size_t columnIndex = 0; columnIndex < columns.size(); ++columnIndex) {
    271273            auto& slot = *m_grid.slot({ columnIndex, rowIndex });
Note: See TracChangeset for help on using the changeset viewer.