Changeset 245220 in webkit


Ignore:
Timestamp:
May 12, 2019 8:57:38 PM (5 years ago)
Author:
Simon Fraser
Message:

When the set of backing-sharing layers changes, we need to issue a repaint
https://bugs.webkit.org/show_bug.cgi?id=197825

Reviewed by Zalan Bujtas.

Source/WebCore:

If the set of layers painting into a shared backing store changes, we need
to repaint that backing store. This happens when scrolling as shared layers
enter the visible area.

Test: compositing/shared-backing/overflow-scroll/repaint-shared-on-scroll.html

  • rendering/RenderLayerBacking.cpp:

(WebCore::RenderLayerBacking::setBackingSharingLayers):

LayoutTests:

  • compositing/shared-backing/overflow-scroll/repaint-shared-on-scroll-expected.html: Added.
  • compositing/shared-backing/overflow-scroll/repaint-shared-on-scroll.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r245215 r245220  
     12019-05-12  Simon Fraser  <simon.fraser@apple.com>
     2
     3        When the set of backing-sharing layers changes, we need to issue a repaint
     4        https://bugs.webkit.org/show_bug.cgi?id=197825
     5
     6        Reviewed by Zalan Bujtas.
     7
     8        * compositing/shared-backing/overflow-scroll/repaint-shared-on-scroll-expected.html: Added.
     9        * compositing/shared-backing/overflow-scroll/repaint-shared-on-scroll.html: Added.
     10
    1112019-05-12  Takashi Komori  <Takashi.Komori@sony.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r245219 r245220  
     12019-05-12  Simon Fraser  <simon.fraser@apple.com>
     2
     3        When the set of backing-sharing layers changes, we need to issue a repaint
     4        https://bugs.webkit.org/show_bug.cgi?id=197825
     5
     6        Reviewed by Zalan Bujtas.
     7
     8        If the set of layers painting into a shared backing store changes, we need
     9        to repaint that backing store. This happens when scrolling as shared layers
     10        enter the visible area.
     11
     12        Test: compositing/shared-backing/overflow-scroll/repaint-shared-on-scroll.html
     13
     14        * rendering/RenderLayerBacking.cpp:
     15        (WebCore::RenderLayerBacking::setBackingSharingLayers):
     16
    1172019-05-02  Simon Fraser  <simon.fraser@apple.com>
    218
  • trunk/Source/WebCore/rendering/RenderLayerBacking.cpp

    r245218 r245220  
    282282{
    283283    clearBackingSharingLayerProviders(m_backingSharingLayers);
     284
     285    if (sharingLayers != m_backingSharingLayers)
     286        setContentsNeedDisplay(); // This could be optimize to only repaint rects for changed layers.
     287
    284288    m_backingSharingLayers = WTFMove(sharingLayers);
    285289
Note: See TracChangeset for help on using the changeset viewer.