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

Changeset 271235 in webkit


Ignore:
Timestamp:
Jan 7, 2021, 7:58:37 AM (6 years ago)
Author:
Lauro Moura
Message:

REGRESSION(r270425) [GTK] wheel scrolling stopped working
https://bugs.webkit.org/show_bug.cgi?id=219547

Reviewed by Carlos Garcia Campos.

Source/WebCore:

Return early if the frame was already deleted.

Needed for fast/events/wheel-event-destroys-frame.html

  • page/EventHandler.cpp:

(WebCore::EventHandler::wheelEventWasProcessedByMainThread):

Source/WebKit:

In GTK we may have the case where the async scrolling is disabled at
runtime despite being compiled with ASYNC_SCROLLING/SCROLLING_THREAD.
In these cases, the wheel events still need to be dispatched through
the main thread.

  • WebProcess/WebPage/EventDispatcher.cpp:

(WebKit::EventDispatcher::wheelEvent):

LayoutTests:

  • platform/gtk/fast/scrolling/overflow-scrollable-after-back-expected.txt:

Rebaseline with the extra scroll events arriving

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r271223 r271235  
     12021-01-07  Lauro Moura  <lmoura@igalia.com>
     2
     3        REGRESSION(r270425) [GTK] wheel scrolling stopped working
     4        https://bugs.webkit.org/show_bug.cgi?id=219547
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        * platform/gtk/fast/scrolling/overflow-scrollable-after-back-expected.txt:
     9        Rebaseline with the extra scroll events arriving
     10
    1112021-01-06  Rob Buis  <rbuis@igalia.com>
    212
  • trunk/LayoutTests/platform/gtk/fast/scrolling/overflow-scrollable-after-back-expected.txt

    r217674 r271235  
    22PASS: mouseWheel caused scrolling
    33PASS: mouseWheel caused scrolling
     4PASS: mouseWheel caused scrolling
     5
     6Navigating forward then back
     7
    48
    59Navigating forward then back
  • trunk/Source/WebCore/ChangeLog

    r271232 r271235  
     12021-01-07  Lauro Moura  <lmoura@igalia.com>
     2
     3        REGRESSION(r270425) [GTK] wheel scrolling stopped working
     4        https://bugs.webkit.org/show_bug.cgi?id=219547
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        Return early if the frame was already deleted.
     9
     10        Needed for fast/events/wheel-event-destroys-frame.html
     11
     12        * page/EventHandler.cpp:
     13        (WebCore::EventHandler::wheelEventWasProcessedByMainThread):
     14
    1152021-01-07  Carlos Garcia Campos  <cgarcia@igalia.com>
    216
  • trunk/Source/WebCore/page/EventHandler.cpp

    r270712 r271235  
    27372737
    27382738#if ENABLE(ASYNC_SCROLLING)
     2739
     2740    if (!m_frame.page())
     2741        return;
     2742
    27392743    FrameView* view = m_frame.view();
    27402744    if (auto scrollingCoordinator = m_frame.page()->scrollingCoordinator()) {
  • trunk/Source/WebKit/ChangeLog

    r271231 r271235  
     12021-01-07  Lauro Moura  <lmoura@igalia.com>
     2
     3        REGRESSION(r270425) [GTK] wheel scrolling stopped working
     4        https://bugs.webkit.org/show_bug.cgi?id=219547
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        In GTK we may have the case where the async scrolling is disabled at
     9        runtime despite being compiled with ASYNC_SCROLLING/SCROLLING_THREAD.
     10        In these cases, the wheel events still need to be dispatched through
     11        the main thread.
     12
     13        * WebProcess/WebPage/EventDispatcher.cpp:
     14        (WebKit::EventDispatcher::wheelEvent):
     15
    1162021-01-07  Carlos Garcia Campos  <cgarcia@igalia.com>
    217
  • trunk/Source/WebKit/WebProcess/WebPage/EventDispatcher.cpp

    r270425 r271235  
    163163        return processingSteps;
    164164    }();
     165
     166    auto scrollingTree = m_scrollingTrees.get(pageID);
     167    if (!scrollingTree)
     168        dispatchWheelEventViaMainThread(pageID, wheelEvent, processingSteps);
    165169#else
    166170    UNUSED_PARAM(canRubberBandAtLeft);
Note: See TracChangeset for help on using the changeset viewer.