Bug 920377 part.13 Get rid of nsTouchEvent r=roc

This commit is contained in:
Masayuki Nakano
2013-09-27 15:20:57 +09:00
parent 395a56d9cb
commit fb9f3a20a8
31 changed files with 102 additions and 96 deletions

View File

@@ -477,10 +477,10 @@ nsRangeFrame::GetValueAtEventPoint(nsGUIEvent* aEvent)
LayoutDeviceIntPoint absPoint;
if (aEvent->eventStructType == NS_TOUCH_EVENT) {
MOZ_ASSERT(static_cast<nsTouchEvent*>(aEvent)->touches.Length() == 1,
MOZ_ASSERT(static_cast<WidgetTouchEvent*>(aEvent)->touches.Length() == 1,
"Unexpected number of touches");
absPoint = LayoutDeviceIntPoint::FromUntyped(
static_cast<nsTouchEvent*>(aEvent)->touches[0]->mRefPoint);
static_cast<WidgetTouchEvent*>(aEvent)->touches[0]->mRefPoint);
} else {
absPoint = aEvent->refPoint;
}