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

Changeset 263860 in webkit


Ignore:
Timestamp:
Jul 2, 2020, 2:08:06 PM (6 years ago)
Author:
Simon Fraser
Message:

REGRESSION(r260276): menu items in footer of https://salo.ai are invisible until you hover or resize
https://bugs.webkit.org/show_bug.cgi?id=213712
<rdar://problem/64893190>

Reviewed by Zalan Bujtas.

Source/WebCore:

A negative z-index child triggers a foreground layer inside overflow scroll. This foreground layer
gets the PaintingOverflowContents flag but not the PaintingCompositingScrollingPhase flag, but we still need
to avoid the clip check that happens in RenderBlock::paint(), so change RenderLayer::paintLayerContents()
to just check for isPaintingOverflowContents.

Test: compositing/scrolling/async-overflow-scrolling/foreground-layer-paint-phase.html

  • rendering/RenderLayer.cpp:

(WebCore::RenderLayer::paintLayerContents):

LayoutTests:

  • compositing/scrolling/async-overflow-scrolling/foreground-layer-paint-phase-expected.html: Added.
  • compositing/scrolling/async-overflow-scrolling/foreground-layer-paint-phase.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r263859 r263860  
     12020-07-02  Simon Fraser  <simon.fraser@apple.com>
     2
     3        REGRESSION(r260276): menu items in footer of https://salo.ai are invisible until you hover or resize
     4        https://bugs.webkit.org/show_bug.cgi?id=213712
     5        <rdar://problem/64893190>
     6
     7        Reviewed by Zalan Bujtas.
     8
     9        * compositing/scrolling/async-overflow-scrolling/foreground-layer-paint-phase-expected.html: Added.
     10        * compositing/scrolling/async-overflow-scrolling/foreground-layer-paint-phase.html: Added.
     11
    1122020-07-02  Karl Rackler  <rackler@apple.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r263858 r263860  
     12020-07-02  Simon Fraser  <simon.fraser@apple.com>
     2
     3        REGRESSION(r260276): menu items in footer of https://salo.ai are invisible until you hover or resize
     4        https://bugs.webkit.org/show_bug.cgi?id=213712
     5        <rdar://problem/64893190>
     6
     7        Reviewed by Zalan Bujtas.
     8
     9        A negative z-index child triggers a foreground layer inside overflow scroll. This foreground layer
     10        gets the PaintingOverflowContents flag but not the PaintingCompositingScrollingPhase flag, but we still need
     11        to avoid the clip check that happens in RenderBlock::paint(), so change RenderLayer::paintLayerContents()
     12        to just check for isPaintingOverflowContents.
     13
     14        Test: compositing/scrolling/async-overflow-scrolling/foreground-layer-paint-phase.html
     15
     16        * rendering/RenderLayer.cpp:
     17        (WebCore::RenderLayer::paintLayerContents):
     18
    1192020-07-02  Antoine Quint  <graouts@webkit.org>
    220
  • trunk/Source/WebCore/rendering/RenderLayer.cpp

    r263688 r263860  
    46164616            paintBehavior.add(PaintBehavior::TileFirstPaint);
    46174617
    4618         if (isPaintingScrollingContent && isPaintingOverflowContents)
     4618        if (isPaintingOverflowContents)
    46194619            paintBehavior.add(PaintBehavior::CompositedOverflowScrollContent);
    46204620
Note: See TracChangeset for help on using the changeset viewer.