Bug 1046101 part.18 Rename NS_TOUCH_EVENT to eTouchEventClass r=smaug

This commit is contained in:
Masayuki Nakano
2014-08-04 14:28:53 +09:00
parent 37270be41d
commit aef16cc9e8
17 changed files with 39 additions and 39 deletions

View File

@@ -467,7 +467,7 @@ Decimal
nsRangeFrame::GetValueAtEventPoint(WidgetGUIEvent* aEvent)
{
MOZ_ASSERT(aEvent->mClass == eMouseEventClass ||
aEvent->mClass == NS_TOUCH_EVENT,
aEvent->mClass == eTouchEventClass,
"Unexpected event type - aEvent->refPoint may be meaningless");
MOZ_ASSERT(mContent->IsHTML(nsGkAtoms::input), "bad cast");
@@ -485,7 +485,7 @@ nsRangeFrame::GetValueAtEventPoint(WidgetGUIEvent* aEvent)
Decimal range = maximum - minimum;
LayoutDeviceIntPoint absPoint;
if (aEvent->mClass == NS_TOUCH_EVENT) {
if (aEvent->mClass == eTouchEventClass) {
MOZ_ASSERT(aEvent->AsTouchEvent()->touches.Length() == 1,
"Unexpected number of touches");
absPoint = LayoutDeviceIntPoint::FromUntyped(