Changeset 274419 in webkit
- Timestamp:
- Mar 15, 2021 6:18:25 AM (16 months ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/flexbox/indefinite-width-crash-expected.txt (added)
-
LayoutTests/fast/flexbox/indefinite-width-crash.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/RenderBox.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r274416 r274419 1 2021-03-15 Rob Buis <rbuis@igalia.com> 2 3 Treat min-intrinsic like *-content 4 https://bugs.webkit.org/show_bug.cgi?id=222854 5 6 Reviewed by Sergio Villar Senin. 7 8 Add test for this. 9 10 * fast/flexbox/indefinite-width-crash-expected.txt: Added. 11 * fast/flexbox/indefinite-width-crash.html: Added. 12 1 13 2021-03-15 Imanol Fernandez <ifernandez@igalia.com> 2 14 -
trunk/Source/WebCore/ChangeLog
r274416 r274419 1 2021-03-15 Rob Buis <rbuis@igalia.com> 2 3 Treat min-intrinsic like *-content 4 https://bugs.webkit.org/show_bug.cgi?id=222854 5 6 Reviewed by Sergio Villar Senin. 7 8 Treat min-intrinsic like *-content for intrinsic logical 9 content calculations. 10 11 Test: fast/flexbox/indefinite-width-crash.html 12 13 * rendering/RenderBox.cpp: 14 (WebCore::RenderBox::computeIntrinsicLogicalContentHeightUsing const): 15 (WebCore::RenderBox::computeContentAndScrollbarLogicalHeightUsing const): 16 1 17 2021-03-15 Imanol Fernandez <ifernandez@igalia.com> 2 18 -
trunk/Source/WebCore/rendering/RenderBox.cpp
r274287 r274419 3023 3023 // FIXME: The CSS sizing spec is considering changing what min-content/max-content should resolve to. 3024 3024 // If that happens, this code will have to change. 3025 if (logicalHeightLength.isMinContent() || logicalHeightLength.isMaxContent() || logicalHeightLength.isFitContent()) { 3026 if (!intrinsicContentHeight) 3027 return intrinsicContentHeight; 3028 if (style().boxSizing() == BoxSizing::BorderBox) 3025 if (logicalHeightLength.isMinContent() || logicalHeightLength.isMaxContent() || logicalHeightLength.isFitContent() || logicalHeightLength.isMinIntrinsic()) { 3026 if (intrinsicContentHeight && style().boxSizing() == BoxSizing::BorderBox) 3029 3027 return intrinsicContentHeight.value() + borderAndPaddingLogicalHeight(); 3030 3028 return intrinsicContentHeight; … … 3042 3040 // FIXME: The CSS sizing spec is considering changing what min-content/max-content should resolve to. 3043 3041 // If that happens, this code will have to change. 3044 if (height.isIntrinsic() )3042 if (height.isIntrinsic() || height.isMinIntrinsic()) 3045 3043 return computeIntrinsicLogicalContentHeightUsing(height, intrinsicContentHeight, borderAndPaddingLogicalHeight()); 3046 3044 if (height.isFixed())
Note: See TracChangeset
for help on using the changeset viewer.