Changeset 221075 in webkit


Ignore:
Timestamp:
Aug 23, 2017 8:16:23 AM (7 years ago)
Author:
clopez@igalia.com
Message:

[WPE] Some event handlers not working.
https://bugs.webkit.org/show_bug.cgi?id=175864

Reviewed by Michael Catanzaro.

Source/WebCore:

Share the EventHandler implementation with the GTK port and add ifdefs where needed.

Covered by existing tests.

  • PlatformGTK.cmake:
  • PlatformWPE.cmake:
  • page/wpe/EventHandlerWPE.cpp: Removed.
  • platform/glib/EventHandlerGlib.cpp: Renamed from Source/WebCore/page/gtk/EventHandlerGtk.cpp.

(WebCore::EventHandler::shouldTurnVerticalTicksIntoHorizontal const):

LayoutTests:

Remove expected failures for tests that now pass, add new expectation
for a test that is failing also on GTK+ and rebaseline a test with
the same expected result than on GTK+.

  • platform/wpe/TestExpectations:
  • platform/wpe/fast/events/focus-label-legend-elements-with-tab-expected.txt: Added.
Location:
trunk
Files:
1 added
1 deleted
5 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r221074 r221075  
     12017-08-23  Carlos Alberto Lopez Perez  <clopez@igalia.com>
     2
     3        [WPE] Some event handlers not working.
     4        https://bugs.webkit.org/show_bug.cgi?id=175864
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        Remove expected failures for tests that now pass, add new expectation
     9        for a test that is failing also on GTK+ and rebaseline a test with
     10        the same expected result than on GTK+.
     11
     12        * platform/wpe/TestExpectations:
     13        * platform/wpe/fast/events/focus-label-legend-elements-with-tab-expected.txt: Added.
     14
    1152017-08-23  Ms2ger  <Ms2ger@igalia.com>
    216
  • trunk/LayoutTests/platform/wpe/TestExpectations

    r221073 r221075  
    462462# Most of them are probably failing because of missing support of event related
    463463# features in WPE.
    464 webkit.org/b/173419 fast/events/autoscroll-in-overflow-hidden-html.html [ Failure ]
    465464webkit.org/b/173419 fast/events/autoscroll-in-textarea.html [ Failure ]
    466465webkit.org/b/173419 fast/events/autoscroll-in-textfield.html [ Failure ]
     
    484483webkit.org/b/173419 fast/events/input-events-paste-rich-datatransfer.html [ Failure ]
    485484webkit.org/b/173419 fast/events/js-keyboard-event-creation.html [ Failure ]
    486 webkit.org/b/173419 fast/events/keydown-1.html [ Failure ]
    487485webkit.org/b/173419 fast/events/keydown-numpad-keys.html [ Failure ]
    488486webkit.org/b/173419 fast/events/mouse-cursor-image-set.html [ Failure ]
    489 webkit.org/b/173419 fast/events/mouse-drag-from-frame-to-other-frame.html [ Failure ]
    490 webkit.org/b/173419 fast/events/mouse-drag-from-frame.html [ Failure ]
    491 webkit.org/b/173419 fast/events/mouseenterleave-on-subframe.html [ Failure ]
    492487webkit.org/b/173419 fast/events/mouseover-button.html [ Failure ]
    493 webkit.org/b/173419 fast/events/mouseover-mouseout.html [ Failure ]
    494 webkit.org/b/173419 fast/events/mouseover-mouseout2.html [ Failure ]
    495488webkit.org/b/173419 fast/events/mouseup-from-button2.html [ Failure ]
    496489webkit.org/b/173419 fast/events/no-scroll-on-input-text-selection.html [ Failure ]
     
    499492webkit.org/b/173419 fast/events/onchange-range-slider.html [ Failure ]
    500493webkit.org/b/173419 fast/events/option-tab.html [ Failure ]
    501 webkit.org/b/173419 fast/events/page-scaled-mouse-click-iframe.html [ Failure ]
    502494webkit.org/b/173419 fast/events/platform-wheelevent-in-scrolling-div.html [ Failure ]
    503495webkit.org/b/173419 fast/events/platform-wheelevent-paging-x-in-non-scrolling-div.html [ Failure ]
     
    533525webkit.org/b/173419 fast/events/autoscroll-when-zoomed.html [ Timeout ]
    534526webkit.org/b/173419 fast/events/before-input-prevent-insert-replacement.html [ Timeout ]
    535 webkit.org/b/173419 fast/events/can-click-element-on-page-with-active-pseudo-class-and-search-field.html [ Timeout ]
    536527webkit.org/b/173419 fast/events/clipboard-dataTransferItemList.html [ Timeout ]
    537528webkit.org/b/173419 fast/events/drag-dataTransferItemList.html [ Timeout ]
    538529webkit.org/b/173419 fast/events/event-view-toString.html [ Timeout ]
    539 webkit.org/b/173419 fast/events/frame-detached-in-mousedown.html [ Timeout ]
    540 webkit.org/b/173419 fast/events/iframe-onmousemove.html [ Timeout ]
    541530webkit.org/b/173419 fast/events/input-event-insert-replacement.html [ Timeout ]
    542531webkit.org/b/173419 fast/events/mouse-force-changed.html [ Timeout ]
    543532webkit.org/b/173419 fast/events/mouse-force-down.html [ Timeout ]
    544533webkit.org/b/173419 fast/events/mouse-force-up.html [ Timeout ]
    545 webkit.org/b/173419 fast/events/mouse-moved-remove-frame-crash.html [ Timeout ]
    546534webkit.org/b/173419 fast/events/page-visibility-iframe-delete-test.html [ Timeout ]
    547535webkit.org/b/173419 fast/events/page-visibility-iframe-move-test.html [ Timeout ]
     
    549537webkit.org/b/173419 fast/events/page-visibility-onvisibilitychange.html [ Timeout ]
    550538webkit.org/b/173419 fast/events/page-visibility-transition-test.html [ Timeout ]
    551 webkit.org/b/173419 fast/events/popup-blocking-click-in-iframe.html [ Timeout ]
    552539webkit.org/b/173419 fast/events/scroll-after-click-on-tab-index.html [ Timeout ]
    553540webkit.org/b/173419 fast/events/standalone-image-drag-to-editable.html [ Timeout ]
    554 webkit.org/b/173419 fast/events/touch/emulated-touch-iframe.html [ Timeout ]
    555541webkit.org/b/173419 fast/events/touch/multi-touch-grouped-targets.html [ Timeout ]
    556542webkit.org/b/173419 fast/events/touch/multi-touch-inside-nested-iframes.html [ Timeout ]
     
    558544webkit.org/b/173419 fast/events/touch/touch-target-limited.html [ Timeout ]
    559545webkit.org/b/173419 fast/events/touch/touch-target.html [ Timeout ]
    560 webkit.org/b/173419 fast/events/wheel-event-destroys-frame.html [ Timeout ]
     546
     547webkit.org/b/173411 fast/events/touch/frame-hover-update.html [ Failure ]
    561548
    562549fast/events/ios [ Skip ]
  • trunk/Source/WebCore/ChangeLog

    r221068 r221075  
     12017-08-23  Carlos Alberto Lopez Perez  <clopez@igalia.com>
     2
     3        [WPE] Some event handlers not working.
     4        https://bugs.webkit.org/show_bug.cgi?id=175864
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        Share the EventHandler implementation with the GTK port and add ifdefs where needed.
     9
     10        Covered by existing tests.
     11
     12        * PlatformGTK.cmake:
     13        * PlatformWPE.cmake:
     14        * page/wpe/EventHandlerWPE.cpp: Removed.
     15        * platform/glib/EventHandlerGlib.cpp: Renamed from Source/WebCore/page/gtk/EventHandlerGtk.cpp.
     16        (WebCore::EventHandler::shouldTurnVerticalTicksIntoHorizontal const):
     17
    1182017-08-22  Tim Horton  <timothy_horton@apple.com>
    219
  • trunk/Source/WebCore/PlatformGTK.cmake

    r220631 r221075  
    146146
    147147    page/gtk/DragControllerGtk.cpp
    148     page/gtk/EventHandlerGtk.cpp
     148
     149    platform/glib/EventHandlerGlib.cpp
    149150
    150151    platform/graphics/PlatformDisplay.cpp
  • trunk/Source/WebCore/PlatformWPE.cmake

    r220631 r221075  
    133133    editing/wpe/EditorWPE.cpp
    134134
    135     page/wpe/EventHandlerWPE.cpp
     135    platform/glib/EventHandlerGlib.cpp
    136136
    137137    platform/graphics/egl/GLContextEGLWPE.cpp
  • trunk/Source/WebCore/platform/glib/EventHandlerGlib.cpp

    r221074 r221075  
    11/*
    22 * Copyright (C) 2006 Zack Rusin <zack@kde.org>
     3 * Copyright (C) 2014-2017 Igalia S.L.
    34 *
    45 * Redistribution and use in source and binary forms, with or without
     
    2728#include "EventHandler.h"
    2829
    29 #include "DataTransfer.h"
    30 #include "FloatPoint.h"
    3130#include "FocusController.h"
    3231#include "Frame.h"
     
    3938#include "PlatformWheelEvent.h"
    4039#include "RenderWidget.h"
     40
     41#if ENABLE(DRAG_SUPPORT)
     42#include "DataTransfer.h"
     43#endif
     44
     45#if PLATFORM(GTK)
    4146#include "Scrollbar.h"
     47#endif
    4248
    4349namespace WebCore {
     
    8187bool EventHandler::eventActivatedView(const PlatformMouseEvent&) const
    8288{
    83     //GTK+ activation is not necessarily tied to mouse events, so it may
    84     //not make sense to implement this
     89    // GTK+ activation is not necessarily tied to mouse events, so it may
     90    // not make sense to implement this
    8591
    8692    notImplemented();
     
    134140bool EventHandler::shouldTurnVerticalTicksIntoHorizontal(const HitTestResult& result, const PlatformWheelEvent& event) const
    135141{
     142#if PLATFORM(GTK)
    136143    FrameView* view = m_frame.view();
    137144    Scrollbar* scrollbar = view ? view->scrollbarAtPoint(event.position()) : nullptr;
     
    139146        scrollbar = result.scrollbar();
    140147    return scrollbar && scrollbar->orientation() == HorizontalScrollbar;
     148#else
     149    UNUSED_PARAM(result);
     150    UNUSED_PARAM(event);
     151    notImplemented();
     152    return false;
     153#endif
    141154}
    142155
Note: See TracChangeset for help on using the changeset viewer.