Bug 895274 part.37 Rename NS_MOUSELEAVE to eMouseLeave r=smaug

This commit is contained in:
Masayuki Nakano 2015-08-29 08:58:33 +09:00
parent fbe0cb45f2
commit 7a413f4e8c
4 changed files with 6 additions and 6 deletions

View File

@ -275,7 +275,7 @@ EVENT(mouseenter,
EventNameType_All,
eMouseEventClass)
EVENT(mouseleave,
NS_MOUSELEAVE,
eMouseLeave,
EventNameType_All,
eMouseEventClass)
EVENT(mousemove,

View File

@ -3741,7 +3741,7 @@ EventStateManager::DispatchMouseOrPointerEvent(WidgetMouseEvent* aMouseEvent,
// "[When the mouse is locked on an element...e]vents that require the concept
// of a mouse cursor must not be dispatched (for example: mouseover, mouseout).
if (sIsPointerLocked &&
(aMessage == NS_MOUSELEAVE ||
(aMessage == eMouseLeave ||
aMessage == eMouseEnter ||
aMessage == eMouseOver ||
aMessage == eMouseOut)) {
@ -3932,7 +3932,7 @@ EventStateManager::NotifyMouseOut(WidgetMouseEvent* aMouseEvent,
EnterLeaveDispatcher leaveDispatcher(this, wrapper->mLastOverElement,
movingInto, aMouseEvent,
isPointer ? NS_POINTER_LEAVE : NS_MOUSELEAVE);
isPointer ? NS_POINTER_LEAVE : eMouseLeave);
// Fire mouseout
DispatchMouseOrPointerEvent(aMouseEvent, isPointer ? NS_POINTER_OUT : eMouseOut,

View File

@ -59,7 +59,7 @@ NS_EVENT_MESSAGE(eMouseOver, eMouseEventFirst + 31)
NS_EVENT_MESSAGE(eMouseOut, eMouseEventFirst + 32)
NS_EVENT_MESSAGE(eMouseHitTest, eMouseEventFirst + 33)
NS_EVENT_MESSAGE(eMouseEnter, eMouseEventFirst + 34)
NS_EVENT_MESSAGE(NS_MOUSELEAVE, eMouseEventFirst + 35)
NS_EVENT_MESSAGE(eMouseLeave, eMouseEventFirst + 35)
NS_EVENT_MESSAGE(NS_MOUSE_MOZLONGTAP, eMouseEventFirst + 36)
// Pointer spec events

View File

@ -205,7 +205,7 @@ protected:
{
switch (aMessage) {
case eMouseEnter:
case NS_MOUSELEAVE:
case eMouseLeave:
mFlags.mBubbles = false;
mFlags.mCancelable = false;
break;
@ -225,7 +225,7 @@ public:
{
switch (aMessage) {
case eMouseEnter:
case NS_MOUSELEAVE:
case eMouseLeave:
mFlags.mBubbles = false;
mFlags.mCancelable = false;
break;