Bug 1046101 part.18 Rename NS_TOUCH_EVENT to eTouchEventClass r=smaug
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user