Changeset 294744 in webkit
- Timestamp:
- May 24, 2022, 7:22:19 AM (4 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/flex-minimum-height-flex-items-031-expected.txt (added)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/flex-minimum-height-flex-items-031.html (added)
-
Source/WebCore/rendering/RenderBox.cpp (modified) (2 diffs)
-
Source/WebCore/rendering/RenderFlexibleBox.cpp (modified) (1 diff)
-
Source/WebCore/rendering/RenderFlexibleBox.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/rendering/RenderBox.cpp
r294275 r294744 3267 3267 if (intrinsicContentHeight) 3268 3268 return adjustIntrinsicLogicalHeightForBoxSizing(intrinsicContentHeight.value()); 3269 return intrinsicContentHeight;3269 return std::nullopt; 3270 3270 } 3271 3271 if (logicalHeightLength.isFillAvailable()) … … 3277 3277 std::optional<LayoutUnit> RenderBox::computeContentAndScrollbarLogicalHeightUsing(SizeType heightType, const Length& height, std::optional<LayoutUnit> intrinsicContentHeight) const 3278 3278 { 3279 if (height.isAuto()) 3280 return heightType == MinSize ? std::optional<LayoutUnit>(0) : std::nullopt; 3279 if (height.isAuto()) { 3280 if (heightType != MinSize) 3281 return std::nullopt; 3282 if (intrinsicContentHeight && isFlexItem() && downcast<RenderFlexibleBox>(parent())->shouldApplyMinBlockSizeAutoForChild(*this)) 3283 return adjustIntrinsicLogicalHeightForBoxSizing(intrinsicContentHeight.value()); 3284 return std::optional<LayoutUnit>(0); 3285 } 3281 3286 // FIXME: The CSS sizing spec is considering changing what min-content/max-content should resolve to. 3282 3287 // If that happens, this code will have to change. -
trunk/Source/WebCore/rendering/RenderFlexibleBox.cpp
r294193 r294744 522 522 523 523 return (minSize.isAuto() || childBlockSizeIsEquivalentToAutomaticSize) && (mainAxisOverflowForChild(child) == Overflow::Visible); 524 } 525 526 bool RenderFlexibleBox::shouldApplyMinBlockSizeAutoForChild(const RenderBox& child) const 527 { 528 return !mainAxisIsChildInlineAxis(child) && shouldApplyMinSizeAutoForChild(child); 524 529 } 525 530 -
trunk/Source/WebCore/rendering/RenderFlexibleBox.h
r293293 r294744 91 91 enum class GapType { BetweenLines, BetweenItems }; 92 92 LayoutUnit computeGap(GapType) const; 93 94 bool shouldApplyMinBlockSizeAutoForChild(const RenderBox&) const; 93 95 94 96 protected:
Note:
See TracChangeset
for help on using the changeset viewer.