Changeset 246407 in webkit


Ignore:
Timestamp:
Jun 13, 2019 11:36:03 AM (5 years ago)
Author:
Antti Koivisto
Message:

twitch.tv: embedded video hovers down the screen when scrolling on iPad
https://bugs.webkit.org/show_bug.cgi?id=198832
<rdar://problem/51541439>

Reviewed by Simon Fraser.

Source/WebCore:

Test: compositing/scrolling/async-overflow-scrolling/overflow-scroll-paint-order-sibling.html

  • rendering/RenderLayer.cpp:

(WebCore::RenderLayer::scrollTo):

Overflow scroll layer may have composited descendants that are its paint order siblings. We need to invalidate
the tree of the paint order parent for compositing update (instead of just the tree of the overflow scroll layer).

This matches what RenderLayer::updateLayerPosition() does.

LayoutTests:

  • compositing/scrolling/async-overflow-scrolling/overflow-scroll-paint-order-sibling-expected.html: Added.
  • compositing/scrolling/async-overflow-scrolling/overflow-scroll-paint-order-sibling.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r246406 r246407  
     12019-06-13  Antti Koivisto  <antti@apple.com>
     2
     3        twitch.tv: embedded video hovers down the screen when scrolling on iPad
     4        https://bugs.webkit.org/show_bug.cgi?id=198832
     5        <rdar://problem/51541439>
     6
     7        Reviewed by Simon Fraser.
     8
     9        * compositing/scrolling/async-overflow-scrolling/overflow-scroll-paint-order-sibling-expected.html: Added.
     10        * compositing/scrolling/async-overflow-scrolling/overflow-scroll-paint-order-sibling.html: Added.
     11
    1122019-06-13  Youenn Fablet  <youenn@apple.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r246405 r246407  
     12019-06-13  Antti Koivisto  <antti@apple.com>
     2
     3        twitch.tv: embedded video hovers down the screen when scrolling on iPad
     4        https://bugs.webkit.org/show_bug.cgi?id=198832
     5        <rdar://problem/51541439>
     6
     7        Reviewed by Simon Fraser.
     8
     9        Test: compositing/scrolling/async-overflow-scrolling/overflow-scroll-paint-order-sibling.html
     10
     11        * rendering/RenderLayer.cpp:
     12        (WebCore::RenderLayer::scrollTo):
     13
     14        Overflow scroll layer may have composited descendants that are its paint order siblings. We need to invalidate
     15        the tree of the paint order parent for compositing update (instead of just the tree of the overflow scroll layer).
     16
     17        This matches what RenderLayer::updateLayerPosition() does.
     18
    1192019-06-13  Youenn Fablet  <youenn@apple.com>
    220
  • trunk/Source/WebCore/rendering/RenderLayer.cpp

    r246285 r246407  
    25162516            if (usesCompositedScrolling()) {
    25172517                setNeedsCompositingGeometryUpdate();
    2518                 setDescendantsNeedUpdateBackingAndHierarchyTraversal();
     2518
     2519                // Scroll position can affect the location of a composited descendant (which may be a sibling in z-order),
     2520                // so trigger a descendant walk from the paint-order parent.
     2521                if (auto* paintParent = paintOrderParent())
     2522                    paintParent->setDescendantsNeedUpdateBackingAndHierarchyTraversal();
    25192523            }
    25202524
Note: See TracChangeset for help on using the changeset viewer.