Changeset 213638 in webkit


Ignore:
Timestamp:
Mar 9, 2017 6:24:04 AM (7 years ago)
Author:
tpopela@redhat.com
Message:

Correctly process the return value of gdk_drag_context_get_selected_action()

Reviewed by Carlos Garcia Campos.

It returns the action itself and not the bitmask.

  • UIProcess/gtk/DragAndDropHandler.cpp:

(WebKit::DragAndDropHandler::drop):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r213637 r213638  
     12017-03-09  Tomas Popela  <tpopela@redhat.com>
     2
     3        Correctly process the return value of gdk_drag_context_get_selected_action()
     4
     5        Reviewed by Carlos Garcia Campos.
     6
     7        It returns the action itself and not the bitmask.
     8
     9        * UIProcess/gtk/DragAndDropHandler.cpp:
     10        (WebKit::DragAndDropHandler::drop):
     11
    1122017-03-09  Adrian Perez de Castro  <aperez@igalia.com>
    213
  • trunk/Source/WebKit2/UIProcess/gtk/DragAndDropHandler.cpp

    r212881 r213638  
    291291
    292292    uint32_t flags = 0;
    293     if ((gdk_drag_context_get_selected_action(context) & GDK_ACTION_COPY))
     293    if (gdk_drag_context_get_selected_action(context) == GDK_ACTION_COPY)
    294294        flags |= WebCore::DragApplicationIsCopyKeyDown;
    295295    DragData dragData(droppingContext->selectionData.ptr(), position, convertWidgetPointToScreenPoint(m_page.viewWidget(), position), gdkDragActionToDragOperation(gdk_drag_context_get_actions(context)), static_cast<WebCore::DragApplicationFlags>(flags));
Note: See TracChangeset for help on using the changeset viewer.