Skip to content
  • weinig@apple.com's avatar
    More PlatformEvent cleanup · 526a338d
    weinig@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=74831
    
    Reviewed by Dan Bernstein.
    
    ../WebCore: 
    
    * platform/PlatformMouseEvent.h:
    (WebCore::PlatformMouseEvent::position):
    Rename pos -> position(). Remove x() and y() accessors.
    
    (WebCore::PlatformMouseEvent::globalPosition):
    Added. Replaces globalX() and globalY() accessors.
    
    (WebCore::PlatformMouseEvent::movementDelta):
    Added. Replaces movementX() and movementY() accessors.
    
    * platform/PlatformWheelEvent.h:
    (WebCore::PlatformWheelEvent::position):
    Renamed pos -> position().
    
    (WebCore::PlatformWheelEvent::globalPosition):
    Renamed globalPos -> globalPosition().
    
    * dom/MouseEvent.cpp:
    (WebCore::MouseEvent::create):
    * dom/WheelEvent.cpp:
    (WebCore::WheelEventDispatchMediator::WheelEventDispatchMediator):
    * page/DragController.cpp:
    (WebCore::DragController::startDrag):
    * page/EventHandler.cpp:
    (WebCore::EventHandler::handleMousePressEventSingleClick):
    (WebCore::EventHandler::handleMousePressEvent):
    (WebCore::EventHandler::eventMayStartDrag):
    (...
    526a338d