Changeset 279640 in webkit


Ignore:
Timestamp:
Jul 7, 2021, 1:12:26 AM (4 years ago)
Author:
Chris Lord
Message:

[WPE] Fieldset elements can incorrectly get treated as opaque with async scrolling overflow areas enabled
https://bugs.webkit.org/show_bug.cgi?id=227679

Reviewed by Simon Fraser.

Source/WebCore:

Don't treat fieldset elements as opaque as their background shape is
determined by its children and can be non-rectangular.

No new tests, covered by existing tests.

  • rendering/RenderLayer.cpp:

(WebCore::RenderLayer::backgroundIsKnownToBeOpaqueInRect const):

LayoutTests:

WPT fieldset-overflow test now passes with async overflow scrolling
enabled.

  • platform/wpe/TestExpectations:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r279639 r279640  
     12021-07-07  Chris Lord  <clord@igalia.com>
     2
     3        [WPE] Fieldset elements can incorrectly get treated as opaque with async scrolling overflow areas enabled
     4        https://bugs.webkit.org/show_bug.cgi?id=227679
     5
     6        Reviewed by Simon Fraser.
     7
     8        WPT fieldset-overflow test now passes with async overflow scrolling
     9        enabled.
     10
     11        * platform/wpe/TestExpectations:
     12
    1132021-07-06  Commit Queue  <commit-queue@webkit.org>
    214
  • trunk/LayoutTests/platform/wpe/TestExpectations

    r279545 r279640  
    719719webkit.org/b/224596 imported/w3c/web-platform-tests/css/css-grid/grid-model/grid-container-scrollbar-vertical-rl-001.html [ ImageOnlyFailure ]
    720720webkit.org/b/224596 imported/w3c/web-platform-tests/css/css-position/hypothetical-box-scroll-parent.html [ ImageOnlyFailure ]
    721 webkit.org/b/224596 imported/w3c/web-platform-tests/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/fieldset-overflow.html [ ImageOnlyFailure ]
     721webkit.org/b/227061 imported/w3c/web-platform-tests/css/css-ui/outline-negative-offset-composited-scroll.html [ ImageOnlyFailure ]
    722722
    723723# These tests are passing most of the times since r275515.
  • trunk/Source/WebCore/ChangeLog

    r279639 r279640  
     12021-07-07  Chris Lord  <clord@igalia.com>
     2
     3        [WPE] Fieldset elements can incorrectly get treated as opaque with async scrolling overflow areas enabled
     4        https://bugs.webkit.org/show_bug.cgi?id=227679
     5
     6        Reviewed by Simon Fraser.
     7
     8        Don't treat fieldset elements as opaque as their background shape is
     9        determined by its children and can be non-rectangular.
     10
     11        No new tests, covered by existing tests.
     12
     13        * rendering/RenderLayer.cpp:
     14        (WebCore::RenderLayer::backgroundIsKnownToBeOpaqueInRect const):
     15
    1162021-07-06  Commit Queue  <commit-queue@webkit.org>
    217
  • trunk/Source/WebCore/rendering/RenderLayer.cpp

    r279544 r279640  
    50325032        return false;
    50335033
     5034    // A fieldset with a legend will have an irregular shape, so can't be treated as opaque.
     5035    if (renderer().isFieldset())
     5036        return false;
     5037
    50345038    // FIXME: We currently only check the immediate renderer,
    50355039    // which will miss many cases.
Note: See TracChangeset for help on using the changeset viewer.