Changeset 243796 in webkit


Ignore:
Timestamp:
Apr 3, 2019 6:00:16 AM (5 years ago)
Author:
Carlos Garcia Campos
Message:

[CoordinatedGraphics] Hidden pages are not suspended after a web view resize
https://bugs.webkit.org/show_bug.cgi?id=196487

Reviewed by Žan Doberšek.

When resizing the window, the hidden tabs are updated too, to avoid flickering or getting the old size when
switching tabs. For that we need to resume painting but we are not suspending it again after the update.

  • WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp:

(WebKit::DrawingAreaCoordinatedGraphics::updateBackingStoreState): Suspend the painting again after a
synchronous update if needed.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r243793 r243796  
     12019-04-03  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [CoordinatedGraphics] Hidden pages are not suspended after a web view resize
     4        https://bugs.webkit.org/show_bug.cgi?id=196487
     5
     6        Reviewed by Žan Doberšek.
     7
     8        When resizing the window, the hidden tabs are updated too, to avoid flickering or getting the old size when
     9        switching tabs. For that we need to resume painting but we are not suspending it again after the update.
     10
     11        * WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp:
     12        (WebKit::DrawingAreaCoordinatedGraphics::updateBackingStoreState): Suspend the painting again after a
     13        synchronous update if needed.
     14
    1152019-04-03  Carlos Garcia Campos  <cgarcia@igalia.com>
    216
  • trunk/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp

    r242995 r243796  
    412412        // Make sure to resume painting if we're supposed to respond immediately, otherwise we'll just
    413413        // send back an empty UpdateInfo struct.
     414        bool wasSuspended = m_isPaintingSuspended;
    414415        if (m_isPaintingSuspended)
    415416            resumePainting();
    416417
    417418        sendDidUpdateBackingStoreState();
     419        if (wasSuspended)
     420            suspendPainting();
    418421    }
    419422
Note: See TracChangeset for help on using the changeset viewer.