Reviewed by Darin.
authorap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 20 Jul 2006 19:20:55 +0000 (19:20 +0000)
committerap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 20 Jul 2006 19:20:55 +0000 (19:20 +0000)
commita1d597f4e8f7f2ee96990b9b9b432e35cfa397d1
tree3d13e24a7600be1a401642da8f6cb52752275e35
parentce721fa2ad9feb92a1f37aa2bc1c447cf9f0d453
    Reviewed by Darin.

        Fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8272
        Use of window.open & window.close can cause crash

        * platform/PlatformMouseEvent.h:
        (WebCore::PlatformMouseEvent::PlatformMouseEvent):
        * platform/mac/PlatformMouseEventMac.mm:
        (WebCore::PlatformMouseEvent::PlatformMouseEvent):
        The default constructor now creates a "zero" event, and a new one was added to create the "current" one.

        * bridge/mac/FrameMac.mm:
        (WebCore::FrameMac::handleMouseMoveEvent):
        * rendering/RenderFormElement.cpp:
        (WebCore::RenderFormElement::clicked):
        Updated for the above changes.

        * platform/gdk/MouseEventGdk.cpp:
        * platform/gdk/TemporaryLinkStubs.cpp:
        (PlatformMouseEvent::PlatformMouseEvent):
        * platform/win/MouseEventWin.cpp:
        * platform/win/TemporaryLinkStubs.cpp:
        (PlatformMouseEvent::PlatformMouseEvent):
        Trying not to break other platforms.

        * manual-tests/invalid-mouse-event.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15544 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/bridge/mac/FrameMac.mm
WebCore/manual-tests/invalid-mouse-event.html [new file with mode: 0644]
WebCore/platform/PlatformMouseEvent.h
WebCore/platform/gdk/MouseEventGdk.cpp
WebCore/platform/gdk/TemporaryLinkStubs.cpp
WebCore/platform/mac/PlatformMouseEventMac.mm
WebCore/platform/win/MouseEventWin.cpp
WebCore/platform/win/TemporaryLinkStubs.cpp
WebCore/rendering/RenderFormElement.cpp