Changeset 286952 in webkit
- Timestamp:
- Dec 13, 2021, 9:19:12 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/TestExpectations (modified) (1 diff)
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/inline-box-orthogonal-child-with-margins-expected.html (added)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/inline-box-orthogonal-child-with-margins.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/RenderBlockFlow.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r286949 r286952 1 2021-12-13 Sergio Villar Senin <svillar@igalia.com> 2 3 [css-writing-modes] Use the correct margins in computeInlinePreferredLogicalWidths in orthogonal flows 4 https://bugs.webkit.org/show_bug.cgi?id=233562 5 <rdar://problem/86105904> 6 7 Reviewed by Rob Buis. 8 9 * TestExpectations: Unksipped a flexbox test that is now passing. 10 1 11 2021-12-13 Antti Koivisto <antti@apple.com> 2 12 -
trunk/LayoutTests/TestExpectations
r286949 r286952 4248 4248 webkit.org/b/221474 imported/w3c/web-platform-tests/css/css-flexbox/svg-root-as-flex-item-002.html [ ImageOnlyFailure ] 4249 4249 4250 # The test works fine but the expected result fails due to a missing layout.4251 webkit.org/b/221468 imported/w3c/web-platform-tests/css/css-flexbox/flexbox-align-self-horiz-002.xhtml [ ImageOnlyFailure ]4252 4253 4250 # align baseline in flexbox. 4254 4251 webkit.org/b/221478 imported/w3c/web-platform-tests/css/css-flexbox/baseline-synthesis-001.html [ ImageOnlyFailure ] -
trunk/LayoutTests/imported/w3c/ChangeLog
r286949 r286952 1 2021-12-13 Sergio Villar Senin <svillar@igalia.com> 2 3 [css-writing-modes] Use the correct margins in computeInlinePreferredLogicalWidths in orthogonal flows 4 https://bugs.webkit.org/show_bug.cgi?id=233562 5 <rdar://problem/86105904> 6 7 Reviewed by Rob Buis. 8 9 * web-platform-tests/css/css-writing-modes/inline-box-orthogonal-child-with-margins-expected.html: Added. 10 * web-platform-tests/css/css-writing-modes/inline-box-orthogonal-child-with-margins.html: Added. 11 1 12 2021-12-13 Antti Koivisto <antti@apple.com> 2 13 -
trunk/Source/WebCore/ChangeLog
r286951 r286952 1 2021-12-13 Sergio Villar Senin <svillar@igalia.com> 2 3 [css-writing-modes] Use the correct margins in computeInlinePreferredLogicalWidths in orthogonal flows 4 https://bugs.webkit.org/show_bug.cgi?id=233562 5 <rdar://problem/86105904> 6 7 Reviewed by Rob Buis. 8 9 In order to compute the preferred logical width of an inline element we must compute the preferred widths of 10 its children. More precisely we should compute the intrinsic size of the children in the inline direction of the 11 inline element. For parallel flows this means indeed computing the preferred logical width. Translated to 12 the margins, we should compute the margin-start and margin-end of each child. 13 14 However for orthogonal writing modes we should not use the margin-start & margin-end but margin-after and 15 margin-before. That's why in order to support orthogonal flows we should replace marginStart() usage by 16 marginStartUsing(parentStyle) (same for marginEnd). 17 18 Test: imported/w3c/web-platform-tests/css/css-writing-modes/inline-box-orthogonal-child-with-margins.html 19 20 * rendering/RenderBlockFlow.cpp: 21 (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths const): 22 1 23 2021-12-13 Alan Bujtas <zalan@apple.com> 2 24 -
trunk/Source/WebCore/rendering/RenderBlockFlow.cpp
r286866 r286952 4340 4340 lastText = nullptr; 4341 4341 LayoutUnit margins; 4342 Length startMargin = childStyle.marginStart ();4343 Length endMargin = childStyle.marginEnd ();4342 Length startMargin = childStyle.marginStartUsing(&style()); 4343 Length endMargin = childStyle.marginEndUsing(&style()); 4344 4344 if (startMargin.isFixed()) 4345 4345 margins += LayoutUnit::fromFloatCeil(startMargin.value());
Note:
See TracChangeset
for help on using the changeset viewer.