diff --git a/dom/events/EventNameList.h b/dom/events/EventNameList.h index 4cb3cae191f..bb44cabf12f 100644 --- a/dom/events/EventNameList.h +++ b/dom/events/EventNameList.h @@ -742,7 +742,7 @@ NON_IDL_EVENT(underflow, // Various SVG events NON_IDL_EVENT(SVGLoad, - NS_SVG_LOAD, + eSVGLoad, EventNameType_None, eBasicEventClass) NON_IDL_EVENT(SVGUnload, diff --git a/dom/svg/SVGSVGElement.cpp b/dom/svg/SVGSVGElement.cpp index 1a11731c546..755d6e5a93d 100644 --- a/dom/svg/SVGSVGElement.cpp +++ b/dom/svg/SVGSVGElement.cpp @@ -590,7 +590,7 @@ SVGSVGElement::IsAttributeMapped(const nsIAtom* name) const nsresult SVGSVGElement::PreHandleEvent(EventChainPreVisitor& aVisitor) { - if (aVisitor.mEvent->mMessage == NS_SVG_LOAD) { + if (aVisitor.mEvent->mMessage == eSVGLoad) { if (mTimedDocumentRoot) { mTimedDocumentRoot->Begin(); // Set 'resample needed' flag, so that if any script calls a DOM method diff --git a/parser/html/nsHtml5SVGLoadDispatcher.cpp b/parser/html/nsHtml5SVGLoadDispatcher.cpp index 97ef64df5d5..1a1b31d594c 100644 --- a/parser/html/nsHtml5SVGLoadDispatcher.cpp +++ b/parser/html/nsHtml5SVGLoadDispatcher.cpp @@ -21,7 +21,7 @@ nsHtml5SVGLoadDispatcher::nsHtml5SVGLoadDispatcher(nsIContent* aElement) NS_IMETHODIMP nsHtml5SVGLoadDispatcher::Run() { - WidgetEvent event(true, NS_SVG_LOAD); + WidgetEvent event(true, eSVGLoad); event.mFlags.mBubbles = false; // Do we care about forcing presshell creation if it hasn't happened yet? // That is, should this code flush or something? Does it really matter? diff --git a/widget/EventMessageList.h b/widget/EventMessageList.h index 98bc3e80102..21e3b2c561d 100644 --- a/widget/EventMessageList.h +++ b/widget/EventMessageList.h @@ -192,7 +192,7 @@ NS_EVENT_MESSAGE(ePageHide, ePageTransitionEventFirst + 2) // SVG events NS_EVENT_MESSAGE(eSVGEventFirst, 2800) -NS_EVENT_MESSAGE(NS_SVG_LOAD, eSVGEventFirst) +NS_EVENT_MESSAGE(eSVGLoad, eSVGEventFirst) NS_EVENT_MESSAGE(NS_SVG_UNLOAD, eSVGEventFirst + 1) NS_EVENT_MESSAGE(NS_SVG_RESIZE, eSVGEventFirst + 4) NS_EVENT_MESSAGE(NS_SVG_SCROLL, eSVGEventFirst + 5)