⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 294754 in webkit


Ignore:
Timestamp:
May 24, 2022, 11:48:31 AM (4 years ago)
Author:
Alan Bujtas
Message:

REGRESSION (r292532): pge.com: Unable to focus on any of the inputs
https://bugs.webkit.org/show_bug.cgi?id=240832
<rdar://92538460>

Reviewed by Simon Fraser.

This is a revert of r292532. Blank float avoiders (used width = 0px) do fit even when the available space is zero. We have to find a different way to address the float fitting issue in contain-inline-size-bfc-floats-001.html (though I am not convinced that the expected result is correct anymore).

  • LayoutTests/TestExpectations:
  • LayoutTests/fast/block/float/zero-size-float-avoider-incorrect-position-expected.html: Added.
  • LayoutTests/fast/block/float/zero-size-float-avoider-incorrect-position.html: Added.
  • Source/WebCore/rendering/RenderBlockFlow.cpp:

(WebCore::RenderBlockFlow::getClearDelta):

Canonical link: https://commits.webkit.org/250922@main

Location:
trunk
Files:
2 added
4 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/TestExpectations

    r294614 r294754  
    46394639
    46404640# CSS containment tests that fail
     4641imported/w3c/web-platform-tests/css/css-contain/contain-inline-size-bfc-floats-001.html [ ImageOnlyFailure ]
    46414642# webkit-ruby-text
    46424643imported/w3c/web-platform-tests/css/css-contain/contain-layout-017.html [ ImageOnlyFailure ]
     
    46944695webkit.org/b/229659 imported/w3c/web-platform-tests/css/css-contain/container-queries/custom-layout-container-001.https.html [ ImageOnlyFailure ]
    46954696webkit.org/b/229659 imported/w3c/web-platform-tests/css/css-contain/container-queries/svg-foreignobject-no-size-container.html [ Skip ]
    4696 webkit.org/b/229659 imported/w3c/web-platform-tests/css/css-contain/container-queries/inline-size-bfc-floats.html [ ImageOnlyFailure ]
    46974697
    46984698# Flaky css-contain test
  • trunk/Source/WebCore/rendering/RenderBlockFlow.cpp

    r293943 r294754  
    28442844            child.setMarginRight(childOldMarginRight);
    28452845           
    2846             auto shouldAvoidCurrentVerticalPosition = !availableLogicalWidthAtNewLogicalTopOffset || childLogicalWidthAtNewLogicalTopOffset > availableLogicalWidthAtNewLogicalTopOffset;
    2847             if (!shouldAvoidCurrentVerticalPosition) {
     2846            if (childLogicalWidthAtNewLogicalTopOffset <= availableLogicalWidthAtNewLogicalTopOffset) {
    28482847                // Even though we may not be moving, if the logical width did shrink because of the presence of new floats, then
    28492848                // 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.