From 8a6f654e95cb25ad167cbc028373245e671db461 Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Fri, 20 Apr 2018 20:28:00 +0200 Subject: Bug 1299197 Part1: Refine WidgetPointerHelper native in moebius --- widget/MouseEvents.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/widget/MouseEvents.h b/widget/MouseEvents.h index 643132618..f214ec22b 100644 --- a/widget/MouseEvents.h +++ b/widget/MouseEvents.h @@ -43,21 +43,27 @@ namespace dom { class WidgetPointerHelper { public: - bool convertToPointer; uint32_t pointerId; uint32_t tiltX; uint32_t tiltY; + bool convertToPointer; bool retargetedByPointerCapture; - WidgetPointerHelper() : convertToPointer(true), pointerId(0), tiltX(0), tiltY(0), - retargetedByPointerCapture(false) {} + WidgetPointerHelper() + : pointerId(0) + , tiltX(0) + , tiltY(0) + , convertToPointer(true) + , retargetedByPointerCapture(false) + { + } void AssignPointerHelperData(const WidgetPointerHelper& aEvent) { - convertToPointer = aEvent.convertToPointer; pointerId = aEvent.pointerId; tiltX = aEvent.tiltX; tiltY = aEvent.tiltY; + convertToPointer = aEvent.convertToPointer; retargetedByPointerCapture = aEvent.retargetedByPointerCapture; } }; -- cgit v1.2.3