Changeset 285495 in webkit
- Timestamp:
- Nov 9, 2021 6:35:50 AM (8 months ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/block/out-of-flow-intrinsic-height-expected.html (added)
-
LayoutTests/fast/block/out-of-flow-intrinsic-height.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/RenderBox.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r285493 r285495 1 2021-11-09 Alan Bujtas <zalan@apple.com> 2 3 Rendering bug with height: min-content, position: absolute, and box-sizing: border-box 4 https://bugs.webkit.org/show_bug.cgi?id=232816 5 <rdar://problem/85154265> 6 7 Reviewed by Antti Koivisto. 8 9 * fast/block/out-of-flow-intrinsic-height-expected.html: Added. 10 * fast/block/out-of-flow-intrinsic-height.html: Added. 11 1 12 2021-11-09 Commit Queue <commit-queue@webkit.org> 2 13 -
trunk/Source/WebCore/ChangeLog
r285494 r285495 1 2021-11-09 Alan Bujtas <zalan@apple.com> 2 3 Rendering bug with height: min-content, position: absolute, and box-sizing: border-box 4 https://bugs.webkit.org/show_bug.cgi?id=232816 5 <rdar://problem/85154265> 6 7 Reviewed by Antti Koivisto. 8 9 After r199895, computeIntrinsicLogicalContentHeightUsing started returning the inflated height (content height + border + padding) 10 as content height for border-box box sizing. While some of the callers expect this inflated height, computePositionedLogicalHeightUsing 11 needs the actual content height. This is also similar to what we do with the width values. 12 13 Test: fast/block/out-of-flow-intrinsic-height.html 14 15 * rendering/RenderBox.cpp: 16 (WebCore::RenderBox::computePositionedLogicalHeightUsing const): 17 1 18 2021-11-09 Commit Queue <commit-queue@webkit.org> 2 19 -
trunk/Source/WebCore/rendering/RenderBox.cpp
r285316 r285495 4344 4344 } else { 4345 4345 if (logicalHeightLength.isIntrinsic()) 4346 resolvedLogicalHeight = computeIntrinsicLogicalContentHeightUsing(logicalHeightLength, contentLogicalHeight, bordersPlusPadding).value();4346 resolvedLogicalHeight = adjustContentBoxLogicalHeightForBoxSizing(computeIntrinsicLogicalContentHeightUsing(logicalHeightLength, contentLogicalHeight, bordersPlusPadding).value()); 4347 4347 else if (fromAspectRatio) { 4348 4348 resolvedLogicalHeight = blockSizeFromAspectRatio(horizontalBorderAndPaddingExtent(), verticalBorderAndPaddingExtent(), LayoutUnit(style().logicalAspectRatio()), style().boxSizingForAspectRatio(), logicalWidth());
Note: See TracChangeset
for help on using the changeset viewer.