Changeset 64643 in webkit


Ignore:
Timestamp:
Aug 4, 2010 5:38:33 AM (14 years ago)
Author:
morrita@google.com
Message:

2010-08-03 MORITA Hajime <morrita@google.com>

Reviewed by Tony Chang.

[DRT] Assertion failed when drag and move a draggable element.
https://bugs.webkit.org/show_bug.cgi?id=41695

  • fast/events/dragging-mouse-moves-expected.txt: Added.
  • fast/events/dragging-mouse-moves.html: Added.

2010-08-03 MORITA Hajime <morrita@google.com>

Reviewed by Tony Chang.

[DRT] Assertion failed when drag and move a draggable element.
https://bugs.webkit.org/show_bug.cgi?id=41695

mouseMoveToX() did call [WebHTMLView mouseDragged] even if dragging started.
But Cocoa doesn't call mouseDragged() until dragging is done.
Other part of DumpRenderTree also assumes Cocoa behavior and an assertion
on UIDelegate failed when mouseDragged() is called during dragging.
This change eliminated the mouseDragged() call when dragging begins,
which is implicated by draggingInfo instance.

  • DumpRenderTree/mac/EventSendingController.mm: (-[EventSendingController mouseMoveToX:Y:]):

Test: fast/events/dragging-mouse-moves.html

Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r64640 r64643  
     12010-08-03  MORITA Hajime  <morrita@google.com>
     2
     3        Reviewed by Tony Chang.
     4
     5        [DRT] Assertion failed when drag and move a draggable element.
     6        https://bugs.webkit.org/show_bug.cgi?id=41695
     7
     8        * fast/events/dragging-mouse-moves-expected.txt: Added.
     9        * fast/events/dragging-mouse-moves.html: Added.
     10
    1112010-08-04  Steve Block  <steveblock@google.com>
    212
  • trunk/WebKitTools/ChangeLog

    r64639 r64643  
     12010-08-03  MORITA Hajime  <morrita@google.com>
     2
     3        Reviewed by Tony Chang.
     4
     5        [DRT] Assertion failed when drag and move a draggable element.
     6        https://bugs.webkit.org/show_bug.cgi?id=41695
     7
     8        mouseMoveToX() did call [WebHTMLView mouseDragged] even if dragging started.
     9        But Cocoa doesn't call mouseDragged() until dragging is done.
     10        Other part of DumpRenderTree also assumes Cocoa behavior and an assertion
     11        on UIDelegate failed when mouseDragged() is called during dragging.
     12        This change eliminated the mouseDragged() call when dragging begins,
     13        which is implicated by draggingInfo instance.
     14       
     15        * DumpRenderTree/mac/EventSendingController.mm:
     16        (-[EventSendingController mouseMoveToX:Y:]):
     17
     18        Test: fast/events/dragging-mouse-moves.html
     19       
    1202010-08-02  Steve Block  <steveblock@google.com>
    221
  • trunk/WebKitTools/DumpRenderTree/mac/EventSendingController.mm

    r64470 r64643  
    450450    if (subView) {
    451451        if (leftMouseButtonDown) {
    452             [subView mouseDragged:event];
    453452            if (draggingInfo) {
    454453                // Per NSDragging.h: draggingSources may not implement draggedImage:movedTo:
     
    456455                    [[draggingInfo draggingSource] draggedImage:[draggingInfo draggedImage] movedTo:lastMousePosition];
    457456                [[mainFrame webView] draggingUpdated:draggingInfo];
    458             }
     457            } else
     458                [subView mouseDragged:event];
    459459        } else
    460460            [subView mouseMoved:event];
Note: See TracChangeset for help on using the changeset viewer.