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

This commit is contained in:
David Zbarsky 2013-07-23 01:34:17 -07:00
Родитель e1f9d688b7
Коммит 1c217aae2d
3 изменённых файлов: 9 добавлений и 11 удалений

Просмотреть файл

@ -12,15 +12,10 @@
namespace mozilla {
namespace dom {
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(SVGAnimatedRect)
NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
NS_INTERFACE_MAP_ENTRY(nsISupports)
NS_INTERFACE_MAP_END
NS_SVG_VAL_IMPL_CYCLE_COLLECTION_WRAPPERCACHED(SVGAnimatedRect, mSVGElement)
NS_IMPL_CYCLE_COLLECTING_ADDREF(SVGAnimatedRect)
NS_IMPL_CYCLE_COLLECTING_RELEASE(SVGAnimatedRect)
NS_IMPL_CYCLE_COLLECTION_ROOT_NATIVE(SVGAnimatedRect, AddRef)
NS_IMPL_CYCLE_COLLECTION_UNROOT_NATIVE(SVGAnimatedRect, Release)
SVGAnimatedRect::SVGAnimatedRect(nsSVGViewBox* aVal, nsSVGElement* aSVGElement)
: mVal(aVal)

Просмотреть файл

@ -18,12 +18,11 @@ class nsSVGViewBox;
namespace mozilla {
namespace dom {
class SVGAnimatedRect MOZ_FINAL : public nsISupports,
public nsWrapperCache
class SVGAnimatedRect MOZ_FINAL : public nsWrapperCache
{
public:
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(SVGAnimatedRect)
NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(SVGAnimatedRect)
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_NATIVE_CLASS(SVGAnimatedRect)
SVGAnimatedRect(nsSVGViewBox* aVal, nsSVGElement* aSVGElement);

Просмотреть файл

@ -888,6 +888,10 @@ DOMInterfaces = {
'headerFile': 'SVGAnimatedPreserveAspectRatio.h'
},
'SVGAnimatedRect' : {
'nativeOwnership': 'refcounted'
},
'SVGAnimatedTransformList': {
'nativeOwnership': 'refcounted',
},