Changeset 271436 in webkit
- Timestamp:
- Jan 13, 2021, 3:54:00 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/TestExpectations (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/RenderBlock.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r271435 r271436 1 2021-01-13 Sergio Villar Senin <svillar@igalia.com> 2 3 REGRESSION(r268666) Incorrect vertical position inside grid items with padding 4 https://bugs.webkit.org/show_bug.cgi?id=220524 5 6 Reviewed by Manuel Rego Casasnovas. 7 8 * TestExpectations: remove web-platform-tests/css/css-grid/grid-items/percentage-size-subitems-001.html 9 from the list of image failures. 10 1 11 2021-01-12 Antoine Quint <graouts@webkit.org> 2 12 -
trunk/LayoutTests/TestExpectations
r271395 r271436 1207 1207 webkit.org/b/216145 imported/w3c/web-platform-tests/css/css-grid/alignment/grid-item-no-aspect-ratio-stretch-9.html [ ImageOnlyFailure ] 1208 1208 webkit.org/b/216145 imported/w3c/web-platform-tests/css/css-grid/alignment/grid-item-no-aspect-ratio-stretch-10.html [ ImageOnlyFailure ] 1209 webkit.org/b/191461 imported/w3c/web-platform-tests/css/css-grid/grid-items/percentage-size-subitems-001.html [ ImageOnlyFailure ]1210 1209 webkit.org/b/191463 imported/w3c/web-platform-tests/css/css-grid/grid-items/explicitly-sized-grid-item-as-table.html [ ImageOnlyFailure ] 1211 1210 webkit.org/b/191627 imported/w3c/web-platform-tests/css/css-grid/alignment/grid-self-baseline-not-applied-if-sizing-cyclic-dependency-001.html [ Failure ] -
trunk/Source/WebCore/ChangeLog
r271435 r271436 1 2021-01-13 Sergio Villar Senin <svillar@igalia.com> 2 3 REGRESSION(r268666) Incorrect vertical position inside grid items with padding 4 https://bugs.webkit.org/show_bug.cgi?id=220524 5 6 Reviewed by Manuel Rego Casasnovas. 7 8 In r268666 we sanitized and renamed the old overrideLogicalXXX sizes so that they store what they say. 9 There was a mistake in one of those renames, in availableLogicalHeightForPercentageComputation() we were 10 returning the border box size for the case of grid items. That's clearly wrong as we should return the 11 content box size. That's why adding a padding to a grid item was causing their children to wrongly 12 evaluate the available logical height. 13 14 This fixes a WPT that was marked as failure. 15 16 * rendering/RenderBlock.cpp: 17 (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation const): Return the 18 overridingContentLogicalHeight instead of the overridingLogicalHeight. 19 1 20 2021-01-12 Antoine Quint <graouts@webkit.org> 2 21 -
trunk/Source/WebCore/rendering/RenderBlock.cpp
r271375 r271436 3204 3204 availableHeight = stretchedFlexHeight; 3205 3205 else if (isGridItem() && hasOverridingLogicalHeight()) 3206 availableHeight = overriding LogicalHeight();3206 availableHeight = overridingContentLogicalHeight(); 3207 3207 else if (styleToUse.logicalHeight().isFixed()) { 3208 3208 LayoutUnit contentBoxHeight = adjustContentBoxLogicalHeightForBoxSizing((LayoutUnit)styleToUse.logicalHeight().value());
Note:
See TracChangeset
for help on using the changeset viewer.