Reviewed by Beth.
authorggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Nov 2006 20:14:14 +0000 (20:14 +0000)
committerggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Nov 2006 20:14:14 +0000 (20:14 +0000)
commit04091976f9a27f76f80a62696cda48d56735bb81
tree8d050e6ccd735cb089a95858f2111016159e58d7
parent569a09e2b4d5fa8775d452b60237b33b35f2db7a
    Reviewed by Beth.

        Fixed regression in fast/events/objc-event-api. DumpRenderTree expects to
        be able to dispatch user events even when off-screen, so we have to support
        off-screen windows when handling mouse events.

        * platform/Screen.h:
        * platform/mac/PlatformMouseEventMac.mm:
        (WebCore::globalPoint): Grab the best screen instead of the screen you're
        on, since you might be off-screen.
        * platform/mac/ScreenMac.mm:
        (WebCore::screenForWindow):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@17663 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/platform/Screen.h
WebCore/platform/mac/PlatformMouseEventMac.mm
WebCore/platform/mac/ScreenMac.mm