Changeset 277777 in webkit
- Timestamp:
- May 20, 2021 1:00:20 AM (14 months ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/TestExpectations (modified) (1 diff)
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/table-as-item-specified-width-vertical-expected.html (added)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/table-as-item-specified-width-vertical.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/RenderTable.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r277775 r277777 1 2021-05-20 Felipe Erias <felipeerias@igalia.com> 2 3 [css-flexbox] Wrong height of an empty table inside an orthogonal flex parent 4 https://bugs.webkit.org/show_bug.cgi?id=225339 5 6 Reviewed by Sergio Villar Senin. 7 8 * TestExpectations: Remove one WPT test that now passes. 9 1 10 2021-05-19 Tomoki Imai <Tomoki.Imai@sony.com> 2 11 -
trunk/LayoutTests/TestExpectations
r277772 r277777 3912 3912 webkit.org/b/221473 imported/w3c/web-platform-tests/css/css-flexbox/table-as-item-inflexible-in-column-2.html [ ImageOnlyFailure ] 3913 3913 webkit.org/b/221473 imported/w3c/web-platform-tests/css/css-flexbox/table-as-item-inflexible-in-row-2.html [ ImageOnlyFailure ] 3914 webkit.org/b/221473 imported/w3c/web-platform-tests/css/css-flexbox/table-as-item-specified-height.html [ ImageOnlyFailure ]3915 3914 webkit.org/b/221473 imported/w3c/web-platform-tests/css/css-flexbox/table-as-item-min-height-1.html [ ImageOnlyFailure ] 3916 3915 -
trunk/LayoutTests/imported/w3c/ChangeLog
r277767 r277777 1 2021-05-20 Felipe Erias <felipeerias@igalia.com> 2 3 [css-flexbox] Wrong height of an empty table inside an orthogonal flex parent 4 https://bugs.webkit.org/show_bug.cgi?id=225339 5 6 Reviewed by Sergio Villar Senin. 7 8 Add a test for an empty table inside a flexbox container, where the logical heights of both elements 9 are orthogonal to each other (the table has vertical writing mode and the flexbox uses row direction). 10 11 This is a flipped version of table-as-item-specified-height.html. 12 13 * web-platform-tests/css/css-flexbox/table-as-item-specified-width-vertical-expected.html: Added. 14 * web-platform-tests/css/css-flexbox/table-as-item-specified-width-vertical.html: Added. 15 1 16 2021-05-19 Alex Christensen <achristensen@webkit.org> 2 17 -
trunk/Source/WebCore/ChangeLog
r277776 r277777 1 2021-05-20 Felipe Erias <felipeerias@igalia.com> 2 3 [css-flexbox] Wrong height of an empty table inside an orthogonal flex parent 4 https://bugs.webkit.org/show_bug.cgi?id=225339 5 6 Reviewed by Sergio Villar Senin. 7 8 When setting the height of an empty table, give precedence to the overriding value if it has been set. 9 Do not cache the height of that empty table as the intrinsic content height, because doing so may cause 10 layout problems (the table is actually empty and may be assigned a different height by its parent). 11 12 Test: imported/w3c/web-platform-tests/css/css-flexbox/table-as-item-specified-height.html 13 imported/w3c/web-platform-tests/css/css-flexbox/table-as-item-specified-width-vertical.html 14 15 * rendering/RenderTable.cpp: 16 (WebCore::RenderTable::layout): 17 1 18 2021-05-19 Jean-Yves Avenard <jya@apple.com> 2 19 -
trunk/Source/WebCore/rendering/RenderTable.cpp
r277124 r277777 434 434 LayoutUnit movedSectionLogicalTop; 435 435 unsigned sectionCount = 0; 436 bool shouldCacheIntrinsicContentLogicalHeightForFlexItem = true; 436 437 437 438 LayoutRepainter repainter(*this, checkForRepaintDuringLayout()); … … 529 530 530 531 if (!topSection() && computedLogicalHeight > totalSectionLogicalHeight && !document().inQuirksMode()) { 531 // Completely empty tables (with no sections or anything) should at least honor specified height 532 // in strict mode. 533 setLogicalHeight(logicalHeight() + computedLogicalHeight); 532 // Completely empty tables (with no sections or anything) should at least honor their 533 // overriding or specified height in strict mode, but this value will not be cached. 534 shouldCacheIntrinsicContentLogicalHeightForFlexItem = false; 535 setLogicalHeight(hasOverridingLogicalHeight() ? overridingLogicalHeight() : logicalHeight() + computedLogicalHeight); 534 536 } 535 537 … … 600 602 // FIXME: This value isn't the intrinsic content logical height, but we need 601 603 // to update the value as its used by flexbox layout. crbug.com/367324 602 cacheIntrinsicContentLogicalHeightForFlexItem(contentLogicalHeight()); 603 604 if (shouldCacheIntrinsicContentLogicalHeightForFlexItem) 605 cacheIntrinsicContentLogicalHeightForFlexItem(contentLogicalHeight()); 606 604 607 m_columnLogicalWidthChanged = false; 605 608 clearNeedsLayout();
Note: See TracChangeset
for help on using the changeset viewer.