Changeset 292532 in webkit
- Timestamp:
- Apr 7, 2022, 6:28:51 AM (4 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 4 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/TestExpectations (modified) (2 diffs)
-
LayoutTests/fast/block/float/float-avoider-with-shrinking-content-expected.html (added)
-
LayoutTests/fast/block/float/float-avoider-with-shrinking-content.html (added)
-
LayoutTests/fast/block/float/float-avoider-with-zero-width-expected.txt (added)
-
LayoutTests/fast/block/float/float-avoider-with-zero-width.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/RenderBlockFlow.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r292531 r292532 1 2022-04-07 Alan Bujtas <zalan@apple.com> 2 3 A float avoider should never take a vertical position where a float is present even when its used width is zero 4 https://bugs.webkit.org/show_bug.cgi?id=238895 5 6 Reviewed by Antti Koivisto. 7 8 * TestExpectations: inline-size-bfc-floats.html: never produced correct rendering, the red box just happened to be hidden (which made this test pass). 9 * fast/block/float/float-avoider-with-zero-width-expected.html: Added. 10 * fast/block/float/float-avoider-with-zero-width.html: Added. 11 1 12 2022-04-07 Tim Nguyen <ntim@apple.com> 2 13 -
trunk/LayoutTests/TestExpectations
r292465 r292532 4640 4640 4641 4641 # CSS containment tests that fail 4642 imported/w3c/web-platform-tests/css/css-contain/contain-inline-size-bfc-floats-001.html [ ImageOnlyFailure ]4643 4642 # webkit-ruby-text 4644 4643 imported/w3c/web-platform-tests/css/css-contain/contain-layout-017.html [ ImageOnlyFailure ] … … 4697 4696 webkit.org/b/229659 imported/w3c/web-platform-tests/css/css-contain/container-queries/pseudo-elements-002.html [ ImageOnlyFailure ] 4698 4697 webkit.org/b/229659 imported/w3c/web-platform-tests/css/css-contain/container-queries/svg-foreignobject-no-size-container.html [ Skip ] 4698 webkit.org/b/229659 imported/w3c/web-platform-tests/css/css-contain/container-queries/inline-size-bfc-floats.html [ ImageOnlyFailure ] 4699 4699 4700 4700 # Flaky css-contain test -
trunk/Source/WebCore/ChangeLog
r292531 r292532 1 2022-04-07 Alan Bujtas <zalan@apple.com> 2 3 A float avoider should never take a vertical position where a float is present even when its used width is zero 4 https://bugs.webkit.org/show_bug.cgi?id=238895 5 6 Reviewed by Antti Koivisto. 7 8 A zero width available space is never a valid vertical position for a float avoider even when its width is zero too. 9 10 Test: fast/block/float/float-avoider-with-zero-width.html 11 12 * rendering/RenderBlockFlow.cpp: 13 (WebCore::RenderBlockFlow::getClearDelta): skip and check the next candidate poisition when no space is available. 14 1 15 2022-04-07 Tim Nguyen <ntim@apple.com> 2 16 -
trunk/Source/WebCore/rendering/RenderBlockFlow.cpp
r292394 r292532 2844 2844 child.setMarginRight(childOldMarginRight); 2845 2845 2846 if (childLogicalWidthAtNewLogicalTopOffset <= availableLogicalWidthAtNewLogicalTopOffset) { 2846 auto shouldAvoidCurrentVerticalPosition = !availableLogicalWidthAtNewLogicalTopOffset || childLogicalWidthAtNewLogicalTopOffset > availableLogicalWidthAtNewLogicalTopOffset; 2847 if (!shouldAvoidCurrentVerticalPosition) { 2847 2848 // Even though we may not be moving, if the logical width did shrink because of the presence of new floats, then 2848 2849 // we need to force a relayout as though we shifted. This happens because of the dynamic addition of overhanging floats
Note:
See TracChangeset
for help on using the changeset viewer.