Changeset 289443 in webkit


Ignore:
Timestamp:
Feb 8, 2022 3:49:27 PM (2 years ago)
Author:
commit-queue@webkit.org
Message:

REGRESSION (15.4): Angular virtual scrollers no longer work (because of contain:strict)
https://bugs.webkit.org/show_bug.cgi?id=236260

Patch by Rob Buis <rbuis@igalia.com> on 2022-02-08
Reviewed by Simon Fraser.

LayoutTests/imported/w3c:

  • web-platform-tests/css/css-contain/contain-paint-049-expected.txt: Added.
  • web-platform-tests/css/css-contain/contain-paint-049.html: Added.

Source/WebCore:

Paint containment did not allow collecting scrollable overflow, breaking scrolling
of the container contents, this patch fixes that.

Test: imported/w3c/web-platform-tests/css/css-contain/contain-paint-049.html

  • rendering/RenderBox.cpp:

(WebCore::RenderBox::addOverflowFromChild):

Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r289426 r289443  
     12022-02-08  Rob Buis  <rbuis@igalia.com>
     2
     3        REGRESSION (15.4): Angular virtual scrollers no longer work (because of contain:strict)
     4        https://bugs.webkit.org/show_bug.cgi?id=236260
     5
     6        Reviewed by Simon Fraser.
     7
     8        * web-platform-tests/css/css-contain/contain-paint-049-expected.txt: Added.
     9        * web-platform-tests/css/css-contain/contain-paint-049.html: Added.
     10
    1112022-02-08  Antoine Quint  <graouts@webkit.org>
    212
  • trunk/Source/WebCore/ChangeLog

    r289437 r289443  
     12022-02-08  Rob Buis  <rbuis@igalia.com>
     2
     3        REGRESSION (15.4): Angular virtual scrollers no longer work (because of contain:strict)
     4        https://bugs.webkit.org/show_bug.cgi?id=236260
     5
     6        Reviewed by Simon Fraser.
     7
     8        Paint containment did not allow collecting scrollable overflow, breaking scrolling
     9        of the container contents, this patch fixes that.
     10
     11        Test: imported/w3c/web-platform-tests/css/css-contain/contain-paint-049.html
     12
     13        * rendering/RenderBox.cpp:
     14        (WebCore::RenderBox::addOverflowFromChild):
     15
    1162022-02-08  Brandon Stewart  <brandonstewart@apple.com>
    217
  • trunk/Source/WebCore/rendering/RenderBox.cpp

    r288947 r289443  
    49874987void RenderBox::addOverflowFromChild(const RenderBox* child, const LayoutSize& delta)
    49884988{
    4989     if (paintContainmentApplies())
    4990         return;
    49914989    // Never allow flow threads to propagate overflow up to a parent.
    49924990    if (child->isRenderFragmentedFlow())
     
    50035001    childLayoutOverflowRect.move(delta);
    50045002    addLayoutOverflow(childLayoutOverflowRect);
     5003
     5004    if (paintContainmentApplies())
     5005        return;
    50055006
    50065007    // Add in visual overflow from the child.  Even if the child clips its overflow, it may still
Note: See TracChangeset for help on using the changeset viewer.