-
eae@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=71327 Reviewed by Darin Adler. Change mouse events to use int/IntPoint for screen/window coordinates and LayoutUnit/LayoutPoint for coordinates adjusted for zooming. No new tests. * dom/MouseRelatedEvent.cpp: (WebCore::MouseRelatedEvent::MouseRelatedEvent): (WebCore::MouseRelatedEvent::computeRelativePosition): * dom/MouseRelatedEvent.h: (WebCore::MouseRelatedEvent::screenLocation): Revert screenLocation and windowLocation back to int. * page/DragController.cpp: (WebCore::elementUnderMouse): Change elementUnderMouse to use a LayoutPoint for hit testing. * page/EventHandler.cpp: (WebCore::EventHandler::clear): (WebCore::EventHandler::currentMousePosition): (WebCore::documentPointForWindowPoint): (WebCore::EventHandler::fakeMouseMoveEventTimerFired): * page/EventHandler.h: Revert m_currentMousePosition to IntPoint as it represents a screen coordinate. * platform/PlatformMouseEvent.h: (WebCore::PlatformMouseEvent::PlatformMouseEvent): (WebCore::PlatformMouseEvent::pos): (WebCore::PlatformMouseEvent::x): (WebCore::PlatformMouseEvent::y): (WebCore::PlatformMouseEvent::globalX): (WebCore::PlatformMouseEvent::globalY): * platform/mac/PlatformMouseEventMac.mm: (WebCore::globalPoint): (WebCore::pointForEvent): (WebCore::globalPointForEvent): Revert PlatformMouseEvent to int/IntPoint as it represents a screen coordinate. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99014 268f45cc-cd09-0410-ab3c-d52691b4dbfc
fc240a22