зеркало из https://github.com/mozilla/gecko-dev.git
Changed events names to "create" and "destroy".
This commit is contained in:
Родитель
68093a04cc
Коммит
ecb23ec197
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче