Changeset 284548 in webkit
- Timestamp:
- Oct 20, 2021 10:35:18 AM (9 months 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/RenderBox.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r284546 r284548 1 2021-10-20 Rob Buis <rbuis@igalia.com> 2 3 Fix percentages on orthogonal replaced children 4 https://bugs.webkit.org/show_bug.cgi?id=46496 5 6 Reviewed by Darin Adler. 7 8 * TestExpectations: 9 1 10 2021-10-20 Ayumi Kojima <ayumi_kojima@apple.com> 2 11 -
trunk/LayoutTests/TestExpectations
r284530 r284548 4105 4105 webkit.org/b/209080 imported/w3c/web-platform-tests/css/css-writing-modes/sizing-orthogonal-percentage-margin-007.html [ ImageOnlyFailure ] 4106 4106 webkit.org/b/209080 imported/w3c/web-platform-tests/css/css-writing-modes/sizing-orthogonal-percentage-margin-008.html [ ImageOnlyFailure ] 4107 webkit.org/b/209080 imported/w3c/web-platform-tests/css/css-writing-modes/sizing-percentages-replaced-orthogonal-001.html [ ImageOnlyFailure ]4108 4107 webkit.org/b/209080 imported/w3c/web-platform-tests/css/css-writing-modes/table-cell-001.html [ ImageOnlyFailure ] 4109 4108 webkit.org/b/209080 imported/w3c/web-platform-tests/css/css-writing-modes/table-cell-002.html [ ImageOnlyFailure ] -
trunk/Source/WebCore/ChangeLog
r284544 r284548 1 2021-10-20 Rob Buis <rbuis@igalia.com> 2 3 Fix percentages on orthogonal replaced children 4 https://bugs.webkit.org/show_bug.cgi?id=46496 5 6 Reviewed by Darin Adler. 7 8 Modify computeReplacedLogicalWidthUsing to make it aware of the orthogonal flow case 9 when dealing with calc/percentages. 10 11 This patch also removes an outdated comment from computeReplacedLogicalHeightUsing. 12 13 Test: imported/w3c/web-platform-tests/wpt/css/css-writing-modes/sizing-percentages-replaced-orthogonal-001.html 14 15 * rendering/RenderBox.cpp: 16 (WebCore::RenderBox::computeReplacedLogicalWidthUsing const): 17 (WebCore::RenderBox::computeReplacedLogicalHeightUsing const): 18 1 19 2021-10-20 Ross Kirsling <ross.kirsling@sony.com> 2 20 -
trunk/Source/WebCore/rendering/RenderBox.cpp
r284440 r284548 3326 3326 case LengthType::Percent: 3327 3327 case LengthType::Calculated: { 3328 // FIXME: containingBlockLogicalWidthForContent() is wrong if the replaced element's block-flow is perpendicular to the 3329 // containing block's block-flow. 3330 // https://bugs.webkit.org/show_bug.cgi?id=46496 3331 const LayoutUnit cw = isOutOfFlowPositioned() ? containingBlockLogicalWidthForPositioned(downcast<RenderBoxModelObject>(*container())) : containingBlockLogicalWidthForContent(); 3328 LayoutUnit containerWidth; 3329 if (isOutOfFlowPositioned()) 3330 containerWidth = containingBlockLogicalWidthForPositioned(downcast<RenderBoxModelObject>(*container())); 3331 else if (isHorizontalWritingMode() == containingBlock()->isHorizontalWritingMode()) 3332 containerWidth = containingBlockLogicalWidthForContent(); 3333 else 3334 containerWidth = perpendicularContainingBlockLogicalHeight(); 3332 3335 Length containerLogicalWidth = containingBlock()->style().logicalWidth(); 3333 3336 // FIXME: Handle cases when containing block width is calculated or viewport percent. 3334 3337 // https://bugs.webkit.org/show_bug.cgi?id=91071 3335 3338 if (logicalWidth.isIntrinsic()) 3336 return computeIntrinsicLogicalWidthUsing(logicalWidth, c w, borderAndPaddingLogicalWidth()) - borderAndPaddingLogicalWidth();3337 if (c w > 0 || (!cw&& (containerLogicalWidth.isFixed() || containerLogicalWidth.isPercentOrCalculated())))3338 return adjustContentBoxLogicalWidthForBoxSizing(minimumValueForLength(logicalWidth, c w), logicalWidth.type());3339 return computeIntrinsicLogicalWidthUsing(logicalWidth, containerWidth, borderAndPaddingLogicalWidth()) - borderAndPaddingLogicalWidth(); 3340 if (containerWidth > 0 || (!containerWidth && (containerLogicalWidth.isFixed() || containerLogicalWidth.isPercentOrCalculated()))) 3341 return adjustContentBoxLogicalWidthForBoxSizing(minimumValueForLength(logicalWidth, containerWidth), logicalWidth.type()); 3339 3342 return 0_lu; 3340 3343 } … … 3473 3476 } 3474 3477 3475 // FIXME: availableLogicalHeight() is wrong if the replaced element's block-flow is perpendicular to the3476 // containing block's block-flow.3477 // https://bugs.webkit.org/show_bug.cgi?id=464963478 3478 LayoutUnit availableHeight; 3479 3479 if (isOutOfFlowPositioned())
Note: See TracChangeset
for help on using the changeset viewer.