diff --git a/dom/events/EventNameList.h b/dom/events/EventNameList.h index a88933070a8..9640cc8a7be 100644 --- a/dom/events/EventNameList.h +++ b/dom/events/EventNameList.h @@ -473,7 +473,7 @@ WINDOW_EVENT(afterprint, EventNameType_XUL | EventNameType_HTMLBodyOrFramesetOnly, eBasicEventClass) WINDOW_EVENT(beforeprint, - NS_BEFOREPRINT, + eBeforePrint, EventNameType_XUL | EventNameType_HTMLBodyOrFramesetOnly, eBasicEventClass) BEFOREUNLOAD_EVENT(beforeunload, diff --git a/widget/EventMessageList.h b/widget/EventMessageList.h index 462bfd999d1..3f4b911b9c7 100644 --- a/widget/EventMessageList.h +++ b/widget/EventMessageList.h @@ -344,7 +344,7 @@ NS_EVENT_MESSAGE(eBeforeScriptExecute, eScriptEventFirst) NS_EVENT_MESSAGE(eAfterScriptExecute, eScriptEventFirst + 1) NS_EVENT_MESSAGE(ePrintEventFirst, 4600) -NS_EVENT_MESSAGE(NS_BEFOREPRINT, ePrintEventFirst) +NS_EVENT_MESSAGE(eBeforePrint, ePrintEventFirst) NS_EVENT_MESSAGE(NS_AFTERPRINT, ePrintEventFirst + 1) NS_EVENT_MESSAGE(NS_MESSAGE_EVENT_START, 4700)