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

Changeset 263259 in webkit


Ignore:
Timestamp:
Jun 19, 2020, 5:27:23 AM (6 years ago)
Author:
commit-queue@webkit.org
Message:

REGRESSION(r253360): [GTK] Page starts loading during animation in back/forward gesture
https://bugs.webkit.org/show_bug.cgi?id=205650

Patch by Alexander Mikhaylenko <Alexander Mikhaylenko> on 2020-06-19
Reviewed by Carlos Garcia Campos.

r253360 changed the swipe gesture to start loading the page during the gesture, relying on
freezing the layer tree state to prevent unwanted redraws. However, it was implemented for
AC mode, but didn't prevent redraws in non-accelerated mode. Add a simple check to skip
redraws in this case.

  • WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp:

(WebKit::DrawingAreaCoordinatedGraphics::display): Skip drawing if layer tree state is frozen.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r263258 r263259  
     12020-06-19  Alexander Mikhaylenko  <alexm@gnome.org>
     2
     3        REGRESSION(r253360): [GTK] Page starts loading during animation in back/forward gesture
     4        https://bugs.webkit.org/show_bug.cgi?id=205650
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        r253360 changed the swipe gesture to start loading the page during the gesture, relying on
     9        freezing the layer tree state to prevent unwanted redraws. However, it was implemented for
     10        AC mode, but didn't prevent redraws in non-accelerated mode. Add a simple check to skip
     11        redraws in this case.
     12
     13        * WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp:
     14        (WebKit::DrawingAreaCoordinatedGraphics::display): Skip drawing if layer tree state is frozen.
     15
    1162020-06-19  Carlos Garcia Campos  <cgarcia@igalia.com>
    217
  • trunk/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp

    r262158 r263259  
    697697    ASSERT(!m_inUpdateBackingStoreState);
    698698
     699    if (m_layerTreeStateIsFrozen)
     700        return;
     701
    699702    if (m_isPaintingSuspended)
    700703        return;
Note: See TracChangeset for help on using the changeset viewer.