Changeset 285857 in webkit
- Timestamp:
- Nov 16, 2021, 3:41:05 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/TestExpectations (modified) (2 diffs)
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-grid/alignment/grid-alignment-implies-size-change-029-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-grid/alignment/grid-alignment-implies-size-change-030-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-grid/alignment/grid-alignment-implies-size-change-031-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-grid/alignment/grid-alignment-implies-size-change-035-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-grid/alignment/grid-alignment-implies-size-change-036-expected.txt (modified) (1 diff)
-
LayoutTests/platform/win/TestExpectations (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/RenderGrid.cpp (modified) (2 diffs)
-
Source/WebCore/rendering/RenderReplaced.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r285855 r285857 1 2021-11-16 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, reverting r280078, r280290 and r282008. 4 https://bugs.webkit.org/show_bug.cgi?id=233184 5 6 Caused a crash in grid 7 8 Reverted changesets: 9 10 "Images as grid items should use the overridingLogicalWidth 11 when defined to compute the logical Height" 12 https://bugs.webkit.org/show_bug.cgi?id=228022 13 https://commits.webkit.org/r280078 14 15 "[css-grid] svg image as grid items should use the overriding 16 logical width/height when defined to compute the logical 17 height/width" 18 https://bugs.webkit.org/show_bug.cgi?id=228105 19 https://commits.webkit.org/r280290 20 21 "REGRESSION(r280078): broke fast/images/exif-orientation- 22 composited.html on windows" 23 https://bugs.webkit.org/show_bug.cgi?id=228325 24 https://commits.webkit.org/r282008 25 1 26 2021-11-16 Arcady Goldmints-Orlov <agoldmints@igalia.com> 2 27 -
trunk/LayoutTests/TestExpectations
r285854 r285857 1389 1389 webkit.org/b/216146 imported/w3c/web-platform-tests/css/css-grid/alignment/grid-baseline-align-001.html [ ImageOnlyFailure ] 1390 1390 webkit.org/b/216146 imported/w3c/web-platform-tests/css/css-grid/alignment/grid-baseline-justify-001.html [ ImageOnlyFailure ] 1391 imported/w3c/web-platform-tests/css/css-grid/alignment/replaced-alignment-with-aspect-ratio-002.html [ ImageOnlyFailure ] 1392 imported/w3c/web-platform-tests/css/css-grid/alignment/replaced-alignment-with-aspect-ratio-007.html [ ImageOnlyFailure ] 1393 imported/w3c/web-platform-tests/css/css-grid/alignment/replaced-alignment-with-aspect-ratio-008.html [ ImageOnlyFailure ] 1391 1394 1392 1395 imported/w3c/web-platform-tests/css/css-grid/grid-definition/grid-auto-repeat-dynamic-001.html [ ImageOnlyFailure ] … … 4317 4320 webkit.org/b/209460 imported/w3c/web-platform-tests/css/css-grid/abspos/descendant-static-position-003.html [ ImageOnlyFailure ] 4318 4321 webkit.org/b/212201 imported/w3c/web-platform-tests/css/css-grid/grid-definition/grid-limits-001.html [ Skip ] 4322 webkit.org/b/227900 imported/w3c/web-platform-tests/css/css-grid/alignment/grid-item-aspect-ratio-stretch-1.html [ ImageOnlyFailure ] 4323 webkit.org/b/227900 imported/w3c/web-platform-tests/css/css-grid/alignment/grid-item-aspect-ratio-stretch-2.html [ ImageOnlyFailure ] 4324 webkit.org/b/227900 imported/w3c/web-platform-tests/css/css-grid/alignment/grid-item-aspect-ratio-stretch-3.html [ ImageOnlyFailure ] 4325 webkit.org/b/227900 imported/w3c/web-platform-tests/css/css-grid/alignment/grid-item-aspect-ratio-stretch-4.html [ ImageOnlyFailure ] 4319 4326 webkit.org/b/212246 imported/w3c/web-platform-tests/css/css-grid/alignment/grid-baseline-align-cycles-001.html [ ImageOnlyFailure ] 4320 4327 webkit.org/b/231021 imported/w3c/web-platform-tests/css/css-grid/alignment/grid-inline-baseline.html [ ImageOnlyFailure ] -
trunk/LayoutTests/imported/w3c/ChangeLog
r285852 r285857 1 2021-11-16 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, reverting r280078, r280290 and r282008. 4 https://bugs.webkit.org/show_bug.cgi?id=233184 5 6 Caused a crash in grid 7 8 Reverted changesets: 9 10 "Images as grid items should use the overridingLogicalWidth 11 when defined to compute the logical Height" 12 https://bugs.webkit.org/show_bug.cgi?id=228022 13 https://commits.webkit.org/r280078 14 15 "[css-grid] svg image as grid items should use the overriding 16 logical width/height when defined to compute the logical 17 height/width" 18 https://bugs.webkit.org/show_bug.cgi?id=228105 19 https://commits.webkit.org/r280290 20 21 "REGRESSION(r280078): broke fast/images/exif-orientation- 22 composited.html on windows" 23 https://bugs.webkit.org/show_bug.cgi?id=228325 24 https://commits.webkit.org/r282008 25 1 26 2021-11-15 Tim Nguyen <ntim@apple.com> 2 27 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-grid/alignment/grid-alignment-implies-size-change-029-expected.txt
r280078 r285857 1 1 2 2 3 PASS .before 1 3 FAIL .before 1 assert_equals: 4 <img id="item" src="support/100x100-green.png" class=" before" data-expected-width="200" data-expected-height="200"> 5 height expected 200 but got 100 4 6 PASS .after 2 5 7 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-grid/alignment/grid-alignment-implies-size-change-030-expected.txt
r280078 r285857 2 2 3 3 PASS .before 1 4 PASS .after 2 4 FAIL .after 2 assert_equals: 5 <img id="item" src="support/100x100-green.png" class=" before after" data-expected-width="200" data-expected-height="200"> 6 height expected 200 but got 100 5 7 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-grid/alignment/grid-alignment-implies-size-change-031-expected.txt
r280078 r285857 1 1 2 2 3 PASS .before 1 3 FAIL .before 1 assert_equals: 4 <img id="item" src="support/100x100-green.png" class=" before" data-expected-width="200" data-expected-height="200"> 5 height expected 200 but got 100 4 6 PASS .after 2 5 7 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-grid/alignment/grid-alignment-implies-size-change-035-expected.txt
r280078 r285857 2 2 3 3 PASS .before 1 4 PASS .after 2 4 FAIL .after 2 assert_equals: 5 <img id="item" src="support/100x100-green.png" class=" before after" data-expected-width="80" data-expected-height="80"> 6 height expected 80 but got 100 5 7 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-grid/alignment/grid-alignment-implies-size-change-036-expected.txt
r280078 r285857 1 1 2 2 3 PASS .before 1 3 FAIL .before 1 assert_equals: 4 <img id="item" src="support/100x100-green.png" class=" before" data-expected-width="80" data-expected-height="80"> 5 height expected 80 but got 100 4 6 PASS .after 2 5 7 -
trunk/LayoutTests/platform/win/TestExpectations
r285610 r285857 3822 3822 webkit.org/b/177216 fast/images/animated-image-mp4.html [ Skip ] 3823 3823 3824 webkit.org/b/228325 fast/images/exif-orientation-composited.html [ Pass ImageOnlyFailure ] 3825 3824 3826 webkit.org/b/177234 http/wpt/resource-timing/rt-cors.html [ Skip ] 3825 3827 webkit.org/b/177234 http/wpt/resource-timing/rt-cors.worker.html [ Skip ] -
trunk/Source/WebCore/ChangeLog
r285854 r285857 1 2021-11-16 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, reverting r280078, r280290 and r282008. 4 https://bugs.webkit.org/show_bug.cgi?id=233184 5 6 Caused a crash in grid 7 8 Reverted changesets: 9 10 "Images as grid items should use the overridingLogicalWidth 11 when defined to compute the logical Height" 12 https://bugs.webkit.org/show_bug.cgi?id=228022 13 https://commits.webkit.org/r280078 14 15 "[css-grid] svg image as grid items should use the overriding 16 logical width/height when defined to compute the logical 17 height/width" 18 https://bugs.webkit.org/show_bug.cgi?id=228105 19 https://commits.webkit.org/r280290 20 21 "REGRESSION(r280078): broke fast/images/exif-orientation- 22 composited.html on windows" 23 https://bugs.webkit.org/show_bug.cgi?id=228325 24 https://commits.webkit.org/r282008 25 1 26 2021-11-16 Cathie Chen <cathiechen@igalia.com> 2 27 -
trunk/Source/WebCore/rendering/RenderGrid.cpp
r285497 r285857 1180 1180 { 1181 1181 ASSERT(child.overridingContainingBlockContentLogicalHeight()); 1182 ASSERT(child.overridingContainingBlockContentLogicalWidth()); 1183 1184 // We clear height and width override values because we will decide now whether it's allowed or 1182 1183 // We clear height override values because we will decide now whether it's allowed or 1185 1184 // not, evaluating the conditions which might have changed since the old values were set. 1186 1185 child.clearOverridingLogicalHeight(); 1187 child.clearOverridingLogicalWidth();1188 1186 1189 1187 GridTrackSizingDirection childBlockDirection = GridLayoutFunctions::flowAwareDirectionForChild(*this, child, ForRows); 1190 GridTrackSizingDirection childInlineDirection = GridLayoutFunctions::flowAwareDirectionForChild(*this, child, ForColumns);1191 1188 bool blockFlowIsColumnAxis = childBlockDirection == ForRows; 1192 1189 bool allowedToStretchChildBlockSize = blockFlowIsColumnAxis ? allowedToStretchChildAlongColumnAxis(child) : allowedToStretchChildAlongRowAxis(child); … … 1204 1201 child.setNeedsLayout(MarkOnlyThis); 1205 1202 } 1206 } else if (!allowedToStretchChildBlockSize && allowedToStretchChildAlongRowAxis(child)) { 1207 LayoutUnit stretchedLogicalWidth = availableAlignmentSpaceForChildBeforeStretching(GridLayoutFunctions::overridingContainingBlockContentSizeForChild(child, childInlineDirection).value(), child); 1208 LayoutUnit desiredLogicalWidth = constrainLogicalWidthInFragmentByMinMax(stretchedLogicalWidth, contentWidth(), *this, nullptr); 1209 child.setOverridingLogicalWidth(desiredLogicalWidth); 1210 if (desiredLogicalWidth != child.logicalWidth()) 1211 child.setNeedsLayout(MarkOnlyThis); 1212 } 1203 } 1213 1204 } 1214 1205 -
trunk/Source/WebCore/rendering/RenderReplaced.cpp
r284095 r285857 554 554 // grid item has an intrinsic size. It is possible (indeed, common) for an SVG graphic to have an intrinsic aspect ratio but not to have an intrinsic 555 555 // width or height. There are also elements with intrinsic sizes but without intrinsic ratio (like an iframe). 556 if (intrinsicRatio && (isFlexItem() || isGridItem()) && hasOverridingLogicalHeight() && ((hasIntrinsicWidth && hasIntrinsicHeight) || (contentRenderer && contentRenderer->isSVGRoot() && (hasIntrinsicWidth || hasIntrinsicHeight))))556 if (intrinsicRatio && (isFlexItem() || isGridItem()) && hasOverridingLogicalHeight() && hasIntrinsicWidth && hasIntrinsicHeight) 557 557 return computeReplacedLogicalWidthRespectingMinMaxWidth(roundToInt(round(overridingContentLogicalHeight() * intrinsicRatio)), shouldComputePreferred); 558 558 … … 624 624 625 625 // See computeReplacedLogicalHeight() for a similar check for heights. 626 if (intrinsicRatio && (isFlexItem() || isGridItem()) && hasOverridingLogicalWidth() && ((hasIntrinsicWidth && hasIntrinsicHeight) || (contentRenderer && contentRenderer->isSVGRoot() && (hasIntrinsicWidth || hasIntrinsicHeight))))626 if (intrinsicRatio && isFlexItem() && hasOverridingLogicalWidth() && hasIntrinsicHeight && hasIntrinsicWidth) 627 627 return computeReplacedLogicalHeightRespectingMinMaxHeight(roundToInt(round(overridingContentLogicalWidth() / intrinsicRatio))); 628 628
Note:
See TracChangeset
for help on using the changeset viewer.