}
MouseRelatedEvent::MouseRelatedEvent(const AtomicString& eventType, bool canBubble, bool cancelable, PassRefPtr<AbstractView> abstractView,
- int detail, const LayoutPoint& screenLocation, const LayoutPoint& windowLocation,
+ int detail, const IntPoint& screenLocation, const IntPoint& windowLocation,
+#if ENABLE(POINTER_LOCK)
+ const IntPoint& movementDelta,
+#endif
bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool isSimulated)
: UIEventWithKeyState(eventType, canBubble, cancelable, abstractView, detail, ctrlKey, altKey, shiftKey, metaKey)
, m_screenLocation(screenLocation)
+#if ENABLE(POINTER_LOCK)
+ , m_movementDelta(movementDelta)
+#endif
, m_isSimulated(isSimulated)
{
LayoutPoint adjustedPageLocation;
}
}
- m_clientLocation = adjustedPageLocation - toSize(scrollPosition);
+ m_clientLocation = adjustedPageLocation - toLayoutSize(scrollPosition);
m_pageLocation = adjustedPageLocation;
initCoordinates();
if (n && (layer = n->renderer()->enclosingLayer())) {
layer->updateLayerPosition();
for (; layer; layer = layer->parent()) {
- m_layerLocation -= toSize(layer->location());
+ m_layerLocation -= toLayoutSize(layer->location());
}
}