Changeset 287263 in webkit
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r287128 r287263 1 2021-12-14 Sergio Villar Senin <svillar@igalia.com> 2 3 [css-flexbox] Pre-layout orthogonal children to compute the preferred logical width 4 https://bugs.webkit.org/show_bug.cgi?id=234300 5 6 Reviewed by Javier Fernandez. 7 8 * web-platform-tests/css/css-flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Replaced 9 FAIL by PASS expectations for 2 subtests that are passing now. 10 1 11 2021-12-16 Vitaly Dyachkov <obyknovenius@me.com> 2 12 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt
r267650 r287263 1 1 2 2 PASS .inline-flexbox 1 3 FAIL .inline-flexbox 2 assert_equals: 4 <div class="inline-flexbox" data-expected-width="20"> 5 <div class="vertical" style="line-height: 20px;">Some text</div> 6 </div> 7 width expected 20 but got 0 8 FAIL .inline-flexbox 3 assert_equals: 9 <div class="inline-flexbox" data-expected-width="20"> 10 <span class="vertical" data-expected-width="20" style="line-height: 20px;">Some text</span> 11 </div> 12 width expected 20 but got 0 3 PASS .inline-flexbox 2 4 PASS .inline-flexbox 3 13 5 14 6 Some text -
trunk/Source/WebCore/ChangeLog
r287262 r287263 1 2021-12-14 Sergio Villar Senin <svillar@igalia.com> 2 3 [css-flexbox] Pre-layout orthogonal children to compute the preferred logical width 4 https://bugs.webkit.org/show_bug.cgi?id=234300 5 6 Reviewed by Javier Fernandez. 7 8 In order to properly compute the flex container intrinsic width we must layout the orthogonal 9 children so that we could use the children's block sizes (which are in the flex container 10 inline axis). 11 12 The very same solution was adopted long time ago by the RenderGrid code. 13 14 * rendering/RenderFlexibleBox.cpp: 15 (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths const): prelayout orthogonal children. 16 1 17 2021-12-20 Karl Dubost <karl+github@la-grange.net> 2 18 -
trunk/Source/WebCore/rendering/RenderFlexibleBox.cpp
r287128 r287263 113 113 continue; 114 114 ++numItemsWithNormalLayout; 115 116 // Pre-layout orthogonal children in order to get a valid value for the preferred width. 117 if (style().isHorizontalWritingMode() != child->style().isHorizontalWritingMode()) 118 child->layoutIfNeeded(); 115 119 116 120 LayoutUnit margin = marginIntrinsicLogicalWidthForChild(*child);
Note: See TracChangeset
for help on using the changeset viewer.