diff --git a/dom/telephony/Telephony.cpp b/dom/telephony/Telephony.cpp index 8dce5ac482b..3c7317c8d6e 100644 --- a/dom/telephony/Telephony.cpp +++ b/dom/telephony/Telephony.cpp @@ -163,7 +163,7 @@ Telephony::SwitchActiveCall(TelephonyCall* aCall) NS_IMPL_CYCLE_COLLECTION_CLASS(Telephony) NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INHERITED(Telephony, - nsDOMEventTargetWrapperCache) + nsDOMEventTargetHelper) NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS NS_CYCLE_COLLECTION_TRAVERSE_EVENT_HANDLER(incoming) for (PRUint32 index = 0; index < tmp->mCalls.Length(); index++) { @@ -173,12 +173,12 @@ NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INHERITED(Telephony, NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END NS_IMPL_CYCLE_COLLECTION_TRACE_BEGIN_INHERITED(Telephony, - nsDOMEventTargetWrapperCache) + nsDOMEventTargetHelper) NS_IMPL_CYCLE_COLLECTION_TRACE_JS_CALLBACK(tmp->mCallsArray, "mCallsArray") NS_IMPL_CYCLE_COLLECTION_TRACE_END NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_INHERITED(Telephony, - nsDOMEventTargetWrapperCache) + nsDOMEventTargetHelper) NS_CYCLE_COLLECTION_UNLINK_EVENT_HANDLER(incoming) tmp->mCalls.Clear(); tmp->mActiveCall = nsnull; @@ -188,10 +188,10 @@ NS_IMPL_CYCLE_COLLECTION_UNLINK_END NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(Telephony) NS_INTERFACE_MAP_ENTRY(nsIDOMTelephony) NS_DOM_INTERFACE_MAP_ENTRY_CLASSINFO(Telephony) -NS_INTERFACE_MAP_END_INHERITING(nsDOMEventTargetWrapperCache) +NS_INTERFACE_MAP_END_INHERITING(nsDOMEventTargetHelper) -NS_IMPL_ADDREF_INHERITED(Telephony, nsDOMEventTargetWrapperCache) -NS_IMPL_RELEASE_INHERITED(Telephony, nsDOMEventTargetWrapperCache) +NS_IMPL_ADDREF_INHERITED(Telephony, nsDOMEventTargetHelper) +NS_IMPL_RELEASE_INHERITED(Telephony, nsDOMEventTargetHelper) DOMCI_DATA(Telephony, Telephony) diff --git a/dom/telephony/Telephony.h b/dom/telephony/Telephony.h index ac27b9a30b5..3e3f3dbd90d 100644 --- a/dom/telephony/Telephony.h +++ b/dom/telephony/Telephony.h @@ -51,7 +51,7 @@ class nsPIDOMWindow; BEGIN_TELEPHONY_NAMESPACE -class Telephony : public nsDOMEventTargetWrapperCache, +class Telephony : public nsDOMEventTargetHelper, public nsIDOMTelephony { nsCOMPtr mRIL; @@ -72,10 +72,10 @@ public: NS_DECL_ISUPPORTS_INHERITED NS_DECL_NSIDOMTELEPHONY NS_DECL_NSIRILTELEPHONYCALLBACK - NS_FORWARD_NSIDOMEVENTTARGET(nsDOMEventTargetWrapperCache::) + NS_FORWARD_NSIDOMEVENTTARGET(nsDOMEventTargetHelper::) NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS_INHERITED( Telephony, - nsDOMEventTargetWrapperCache) + nsDOMEventTargetHelper) static already_AddRefed Create(nsPIDOMWindow* aOwner, nsIRadioInterfaceLayer* aRIL); @@ -83,7 +83,7 @@ public: nsIDOMEventTarget* ToIDOMEventTarget() const { - return static_cast( + return static_cast( const_cast(this)); } diff --git a/dom/telephony/TelephonyCall.cpp b/dom/telephony/TelephonyCall.cpp index d5346420324..81c7c0b2b71 100644 --- a/dom/telephony/TelephonyCall.cpp +++ b/dom/telephony/TelephonyCall.cpp @@ -153,7 +153,7 @@ TelephonyCall::ChangeStateInternal(PRUint16 aCallState, bool aFireEvents) NS_IMPL_CYCLE_COLLECTION_CLASS(TelephonyCall) NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INHERITED(TelephonyCall, - nsDOMEventTargetWrapperCache) + nsDOMEventTargetHelper) NS_IMPL_CYCLE_COLLECTION_TRAVERSE_NATIVE_PTR(tmp->mTelephony->ToISupports(), Telephony, "mTelephony") NS_CYCLE_COLLECTION_TRAVERSE_EVENT_HANDLER(statechange) @@ -168,7 +168,7 @@ NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INHERITED(TelephonyCall, NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_INHERITED(TelephonyCall, - nsDOMEventTargetWrapperCache) + nsDOMEventTargetHelper) NS_IMPL_CYCLE_COLLECTION_UNLINK_NSCOMPTR(mTelephony) NS_CYCLE_COLLECTION_UNLINK_EVENT_HANDLER(statechange) NS_CYCLE_COLLECTION_UNLINK_EVENT_HANDLER(dialing) @@ -184,10 +184,10 @@ NS_IMPL_CYCLE_COLLECTION_UNLINK_END NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(TelephonyCall) NS_INTERFACE_MAP_ENTRY(nsIDOMTelephonyCall) NS_DOM_INTERFACE_MAP_ENTRY_CLASSINFO(TelephonyCall) -NS_INTERFACE_MAP_END_INHERITING(nsDOMEventTargetWrapperCache) +NS_INTERFACE_MAP_END_INHERITING(nsDOMEventTargetHelper) -NS_IMPL_ADDREF_INHERITED(TelephonyCall, nsDOMEventTargetWrapperCache) -NS_IMPL_RELEASE_INHERITED(TelephonyCall, nsDOMEventTargetWrapperCache) +NS_IMPL_ADDREF_INHERITED(TelephonyCall, nsDOMEventTargetHelper) +NS_IMPL_RELEASE_INHERITED(TelephonyCall, nsDOMEventTargetHelper) DOMCI_DATA(TelephonyCall, TelephonyCall) diff --git a/dom/telephony/TelephonyCall.h b/dom/telephony/TelephonyCall.h index 3d086b8379e..972e91f7edf 100644 --- a/dom/telephony/TelephonyCall.h +++ b/dom/telephony/TelephonyCall.h @@ -49,7 +49,7 @@ class nsPIDOMWindow; BEGIN_TELEPHONY_NAMESPACE -class TelephonyCall : public nsDOMEventTargetWrapperCache, +class TelephonyCall : public nsDOMEventTargetHelper, public nsIDOMTelephonyCall { NS_DECL_EVENT_HANDLER(statechange) @@ -75,9 +75,9 @@ class TelephonyCall : public nsDOMEventTargetWrapperCache, public: NS_DECL_ISUPPORTS_INHERITED NS_DECL_NSIDOMTELEPHONYCALL - NS_FORWARD_NSIDOMEVENTTARGET(nsDOMEventTargetWrapperCache::) + NS_FORWARD_NSIDOMEVENTTARGET(nsDOMEventTargetHelper::) NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(TelephonyCall, - nsDOMEventTargetWrapperCache) + nsDOMEventTargetHelper) static already_AddRefed Create(Telephony* aTelephony, const nsAString& aNumber, PRUint16 aCallState, @@ -86,7 +86,7 @@ public: nsIDOMEventTarget* ToIDOMEventTarget() const { - return static_cast( + return static_cast( const_cast(this)); } diff --git a/dom/telephony/TelephonyCommon.h b/dom/telephony/TelephonyCommon.h index 74607c7712f..af920de9ff4 100644 --- a/dom/telephony/TelephonyCommon.h +++ b/dom/telephony/TelephonyCommon.h @@ -44,7 +44,7 @@ #include "nsCOMPtr.h" #include "nsCycleCollectionParticipant.h" #include "nsDebug.h" -#include "nsDOMEventTargetWrapperCache.h" +#include "nsDOMEventTargetHelper.h" #include "nsStringGlue.h" #include "nsTArray.h"