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
Родитель af5b384d9a
Коммит 2aad29c8a4
4 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

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

Просмотреть файл

@ -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,

Просмотреть файл

@ -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

Просмотреть файл

@ -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;