Bug 888685: SVGAnimatedAngle shouldn't inherit nsISupports r=Ms2ger

This commit is contained in:
David Zbarsky 2013-07-05 11:57:35 -07:00
parent 3643890665
commit c1ae30a79a
3 changed files with 9 additions and 11 deletions

View File

@ -13,13 +13,8 @@ using namespace mozilla::dom;
NS_SVG_VAL_IMPL_CYCLE_COLLECTION_WRAPPERCACHED(SVGAnimatedAngle, mSVGElement)
NS_IMPL_CYCLE_COLLECTING_ADDREF(SVGAnimatedAngle)
NS_IMPL_CYCLE_COLLECTING_RELEASE(SVGAnimatedAngle)
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(SVGAnimatedAngle)
NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
NS_INTERFACE_MAP_ENTRY(nsISupports)
NS_INTERFACE_MAP_END
NS_IMPL_CYCLE_COLLECTION_ROOT_NATIVE(SVGAnimatedAngle, AddRef)
NS_IMPL_CYCLE_COLLECTION_UNROOT_NATIVE(SVGAnimatedAngle, Release)
JSObject*
SVGAnimatedAngle::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aScope)

View File

@ -17,12 +17,11 @@ namespace dom {
class SVGAngle;
class SVGAnimatedAngle MOZ_FINAL : public nsISupports,
public nsWrapperCache
class SVGAnimatedAngle MOZ_FINAL : public nsWrapperCache
{
public:
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(SVGAnimatedAngle)
NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(SVGAnimatedAngle)
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_NATIVE_CLASS(SVGAnimatedAngle)
SVGAnimatedAngle(nsSVGAngle* aVal, nsSVGElement *aSVGElement)
: mVal(aVal), mSVGElement(aSVGElement)

View File

@ -828,6 +828,10 @@ DOMInterfaces = {
'nativeOwnership': 'refcounted'
},
'SVGAnimatedAngle' : {
'nativeOwnership': 'refcounted'
},
'SVGAnimatedBoolean' : {
'nativeOwnership': 'refcounted'
},