diff --git a/mozilla/content/events/src/nsDOMEvent.cpp b/mozilla/content/events/src/nsDOMEvent.cpp index 0d339fef495..98223bafcf8 100644 --- a/mozilla/content/events/src/nsDOMEvent.cpp +++ b/mozilla/content/events/src/nsDOMEvent.cpp @@ -37,7 +37,7 @@ static char* mEventNames[] = { "mouseout", "mousemove", "keydown", "keyup", "keypress", "focus", "blur", "load", "unload", "abort", "error", "submit", "reset", "change", "paint" ,"text", - "construct", "destruct" + "create", "destroy" }; nsDOMEvent::nsDOMEvent(nsIPresContext* aPresContext, nsEvent* aEvent) { diff --git a/mozilla/content/events/src/nsEventListenerManager.cpp b/mozilla/content/events/src/nsEventListenerManager.cpp index 510e1d6baeb..610134cbe74 100644 --- a/mozilla/content/events/src/nsEventListenerManager.cpp +++ b/mozilla/content/events/src/nsEventListenerManager.cpp @@ -340,11 +340,11 @@ nsresult nsEventListenerManager::GetIdentifiersForType(const nsString& aType, ns aIID = kIDOMPaintListenerIID; *aFlags = NS_EVENT_BITS_PAINT_PAINT; } // extened this to handle IME related events - else if (aType == "construct") { + else if (aType == "create") { aIID = kIDOMLoadListenerIID; *aFlags = NS_EVENT_BITS_LOAD_CONSTRUCT; } - else if (aType == "destruct") { + else if (aType == "destroy") { aIID = kIDOMLoadListenerIID; *aFlags = NS_EVENT_BITS_LOAD_DESTRUCT; } diff --git a/mozilla/layout/events/src/nsDOMEvent.cpp b/mozilla/layout/events/src/nsDOMEvent.cpp index 0d339fef495..98223bafcf8 100644 --- a/mozilla/layout/events/src/nsDOMEvent.cpp +++ b/mozilla/layout/events/src/nsDOMEvent.cpp @@ -37,7 +37,7 @@ static char* mEventNames[] = { "mouseout", "mousemove", "keydown", "keyup", "keypress", "focus", "blur", "load", "unload", "abort", "error", "submit", "reset", "change", "paint" ,"text", - "construct", "destruct" + "create", "destroy" }; nsDOMEvent::nsDOMEvent(nsIPresContext* aPresContext, nsEvent* aEvent) { diff --git a/mozilla/layout/events/src/nsEventListenerManager.cpp b/mozilla/layout/events/src/nsEventListenerManager.cpp index 510e1d6baeb..610134cbe74 100644 --- a/mozilla/layout/events/src/nsEventListenerManager.cpp +++ b/mozilla/layout/events/src/nsEventListenerManager.cpp @@ -340,11 +340,11 @@ nsresult nsEventListenerManager::GetIdentifiersForType(const nsString& aType, ns aIID = kIDOMPaintListenerIID; *aFlags = NS_EVENT_BITS_PAINT_PAINT; } // extened this to handle IME related events - else if (aType == "construct") { + else if (aType == "create") { aIID = kIDOMLoadListenerIID; *aFlags = NS_EVENT_BITS_LOAD_CONSTRUCT; } - else if (aType == "destruct") { + else if (aType == "destroy") { aIID = kIDOMLoadListenerIID; *aFlags = NS_EVENT_BITS_LOAD_DESTRUCT; }