Bug 895274 part.213 Rename NS_SCROLLPORT_OVERFLOW to eScrollPortOverflow r=smaug

This commit is contained in:
Masayuki Nakano 2015-09-12 01:19:27 +09:00
parent 43c26f8450
commit 2237026931
5 changed files with 6 additions and 6 deletions

View File

@ -732,7 +732,7 @@ NON_IDL_EVENT(draggesture,
EventNameType_XUL,
eDragEventClass)
NON_IDL_EVENT(overflow,
NS_SCROLLPORT_OVERFLOW,
eScrollPortOverflow,
EventNameType_XUL,
eBasicEventClass)
NON_IDL_EVENT(underflow,

View File

@ -3035,7 +3035,7 @@ HTMLInputElement::NeedToInitializeEditorForEvent(
case eMouseOver:
case eMouseOut:
case NS_SCROLLPORT_UNDERFLOW:
case NS_SCROLLPORT_OVERFLOW:
case eScrollPortOverflow:
return false;
default:
return true;

View File

@ -3753,7 +3753,7 @@ ScrollFrameHelper::FireScrollPortEvent()
InternalScrollPortEvent event(true,
(orient == InternalScrollPortEvent::horizontal ? mHorizontalOverflow :
mVerticalOverflow) ?
NS_SCROLLPORT_OVERFLOW : NS_SCROLLPORT_UNDERFLOW, nullptr);
eScrollPortOverflow : NS_SCROLLPORT_UNDERFLOW, nullptr);
event.orient = orient;
return EventDispatcher::Dispatch(mOuter->GetContent(),
mOuter->PresContext(), &event);

View File

@ -917,7 +917,7 @@ nsTreeBodyFrame::CheckOverflow(const ScrollParts& aParts)
if (verticalOverflowChanged) {
InternalScrollPortEvent event(true,
mVerticalOverflow ? NS_SCROLLPORT_OVERFLOW : NS_SCROLLPORT_UNDERFLOW,
mVerticalOverflow ? eScrollPortOverflow : NS_SCROLLPORT_UNDERFLOW,
nullptr);
event.orient = InternalScrollPortEvent::vertical;
EventDispatcher::Dispatch(content, presContext, &event);
@ -925,7 +925,7 @@ nsTreeBodyFrame::CheckOverflow(const ScrollParts& aParts)
if (horizontalOverflowChanged) {
InternalScrollPortEvent event(true,
mHorizontalOverflow ? NS_SCROLLPORT_OVERFLOW : NS_SCROLLPORT_UNDERFLOW,
mHorizontalOverflow ? eScrollPortOverflow : NS_SCROLLPORT_UNDERFLOW,
nullptr);
event.orient = InternalScrollPortEvent::horizontal;
EventDispatcher::Dispatch(content, presContext, &event);

View File

@ -130,7 +130,7 @@ NS_EVENT_MESSAGE(eLegacyMousePixelScroll, eLegacyMouseScrollEventFirst + 1)
NS_EVENT_MESSAGE(NS_SCROLLPORT_START, 1700)
NS_EVENT_MESSAGE(NS_SCROLLPORT_UNDERFLOW, NS_SCROLLPORT_START)
NS_EVENT_MESSAGE(NS_SCROLLPORT_OVERFLOW, NS_SCROLLPORT_START + 1)
NS_EVENT_MESSAGE(eScrollPortOverflow, NS_SCROLLPORT_START + 1)
NS_EVENT_MESSAGE(eLegacyMutationEventFirst, 1800)
NS_EVENT_MESSAGE(eLegacySubtreeModified, eLegacyMutationEventFirst)