Bug 1258383 - initialize |mInputSource| with |aMouseEvent.inputSource|. r=kats
authorAndi-Bogdan Postelnicu <bogdan.postelnicu@softvision.ro>
Mon, 21 Mar 2016 16:47:43 +0200
changeset 345870 d1679fda1a1fb0ff702ed261df768d8a7380fa32
parent 345869 b125c700ca86f4aecf1d5c5ee86d94f783abffa3
child 345871 d05aa8ecdb0b184bc22a0efaaf006c26c46401de
push id6389
push userraliiev@mozilla.com
push dateMon, 19 Sep 2016 13:38:22 +0000
treeherdermozilla-beta@01d67bfe6c81 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats
bugs1258383
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1258383 - initialize |mInputSource| with |aMouseEvent.inputSource|. r=kats MozReview-Commit-ID: GpOQyrAlsr3
widget/InputData.cpp
--- a/widget/InputData.cpp
+++ b/widget/InputData.cpp
@@ -28,16 +28,17 @@ already_AddRefed<Touch> SingleTouchData:
   return touch.forget();
 }
 
 MouseInput::MouseInput(const WidgetMouseEventBase& aMouseEvent)
   : InputData(MOUSE_INPUT, aMouseEvent.mTime, aMouseEvent.mTimeStamp,
               aMouseEvent.mModifiers)
   , mType(MOUSE_NONE)
   , mButtonType(NONE)
+  , mInputSource(aMouseEvent.inputSource)
   , mButtons(aMouseEvent.buttons)
   , mHandledByAPZ(aMouseEvent.mFlags.mHandledByAPZ)
 {
   MOZ_ASSERT(NS_IsMainThread(),
              "Can only copy from WidgetTouchEvent on main thread");
 
   mButtonType = NONE;