Bug 1297445 - Remove improper call to WidgetModifiersToDOMModifiers. r=botond

MozReview-Commit-ID: 6cB3s4aCmKQ

--HG--
extra : rebase_source : f32a4af4674c9e680330ddf261ca00997c5f6d2d
This commit is contained in:
Kartikaya Gupta 2016-08-23 13:02:10 -04:00
Родитель ae1bcceeda
Коммит 6c6c920c12
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -254,7 +254,7 @@ APZEventState::ProcessLongTap(const nsCOMPtr<nsIPresShell>& aPresShell,
// Also send a touchcancel to content, so that listeners that might be
// waiting for a touchend don't trigger.
WidgetTouchEvent cancelTouchEvent(true, eTouchCancel, widget.get());
cancelTouchEvent.mModifiers = WidgetModifiersToDOMModifiers(aModifiers);
cancelTouchEvent.mModifiers = aModifiers;
auto ldPoint = LayoutDeviceIntPoint::Round(aPoint * aScale);
cancelTouchEvent.mTouches.AppendElement(new mozilla::dom::Touch(mLastTouchIdentifier,
ldPoint, LayoutDeviceIntPoint(), 0, 0));