Bug 895274 part.65 Rename NS_FORM_CHANGE to eFormChange r=smaug

This commit is contained in:
Masayuki Nakano 2015-09-02 15:08:00 +09:00
parent 5cfc519d5f
commit b4c9424c6a
6 changed files with 7 additions and 7 deletions

View File

@ -809,7 +809,7 @@ nsIContent::PreHandleEvent(EventChainPreVisitor& aVisitor)
case eImageAbort:
case eLoadError:
case NS_FORM_SELECTED:
case NS_FORM_CHANGE:
case eFormChange:
case eLoad:
case eFormReset:
case eResize:

View File

@ -721,7 +721,7 @@ Event::GetEventPopupControlState(WidgetEvent* aEvent, nsIDOMEvent* aDOMEvent)
abuse = openControlled;
}
break;
case NS_FORM_CHANGE :
case eFormChange:
if (PopupAllowedForEvent("change")) {
abuse = openControlled;
}
@ -753,7 +753,7 @@ Event::GetEventPopupControlState(WidgetEvent* aEvent, nsIDOMEvent* aDOMEvent)
// nsPresShell::HandleEventInternal() for details.
if (EventStateManager::IsHandlingUserInput()) {
switch(aEvent->mMessage) {
case NS_FORM_CHANGE :
case eFormChange:
if (PopupAllowedForEvent("change")) {
abuse = openControlled;
}

View File

@ -161,7 +161,7 @@ EVENT(canplaythrough,
EventNameType_HTML,
eBasicEventClass)
EVENT(change,
NS_FORM_CHANGE,
eFormChange,
EventNameType_HTMLXUL,
eBasicEventClass)
EVENT(click,

View File

@ -3299,7 +3299,7 @@ HTMLInputElement::PreHandleEvent(EventChainPreVisitor& aVisitor)
numberControlFrame->HandlingInputEvent(false);
}
}
else if (aVisitor.mEvent->mMessage == NS_FORM_CHANGE) {
else if (aVisitor.mEvent->mMessage == eFormChange) {
// We cancel the DOM 'change' event that is fired for any change to our
// anonymous text control since we fire our own 'change' events and
// content shouldn't be seeing two 'change' events. Besides that we

View File

@ -92,7 +92,7 @@ NS_EVENT_MESSAGE(eReadyStateChange, eStreamEventFirst + 8)
NS_EVENT_MESSAGE(eFormEventFirst, 1200)
NS_EVENT_MESSAGE(eFormSubmit, eFormEventFirst)
NS_EVENT_MESSAGE(eFormReset, eFormEventFirst + 1)
NS_EVENT_MESSAGE(NS_FORM_CHANGE, eFormEventFirst + 2)
NS_EVENT_MESSAGE(eFormChange, eFormEventFirst + 2)
NS_EVENT_MESSAGE(NS_FORM_SELECTED, eFormEventFirst + 3)
NS_EVENT_MESSAGE(NS_FORM_INVALID, eFormEventFirst + 4)

View File

@ -2640,7 +2640,7 @@ case _value: eventName.AssignLiteral(_name) ; break
_ASSIGN_eventName(NS_EDITOR_INPUT,"NS_EDITOR_INPUT");
_ASSIGN_eventName(NS_FOCUS_CONTENT,"NS_FOCUS_CONTENT");
_ASSIGN_eventName(NS_FORM_SELECTED,"NS_FORM_SELECTED");
_ASSIGN_eventName(NS_FORM_CHANGE,"NS_FORM_CHANGE");
_ASSIGN_eventName(eFormChange,"eFormChange");
_ASSIGN_eventName(eFormReset,"eFormReset");
_ASSIGN_eventName(eFormSubmit,"eFormSubmit");
_ASSIGN_eventName(eImageAbort,"eImageAbort");