Bug 827724 - Remove nsIDOMSVGAnimatedPoints r=bz

This commit is contained in:
David Zbarsky 2013-01-12 17:21:53 -05:00
parent fd7bd329e5
commit 5d03b3664d
5 changed files with 2 additions and 43 deletions

View File

@ -19,7 +19,6 @@ NS_IMPL_ADDREF_INHERITED(nsSVGPolyElement,nsSVGPolyElementBase)
NS_IMPL_RELEASE_INHERITED(nsSVGPolyElement,nsSVGPolyElementBase)
NS_INTERFACE_MAP_BEGIN(nsSVGPolyElement)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGAnimatedPoints)
NS_INTERFACE_MAP_END_INHERITING(nsSVGPolyElementBase)
//----------------------------------------------------------------------
@ -31,17 +30,6 @@ nsSVGPolyElement::nsSVGPolyElement(already_AddRefed<nsINodeInfo> aNodeInfo)
SetIsDOMBinding();
}
//----------------------------------------------------------------------
// nsIDOMSGAnimatedPoints methods:
/* readonly attribute DOMSVGPointList points; */
NS_IMETHODIMP
nsSVGPolyElement::GetPoints(nsISupports * *aPoints)
{
*aPoints = Points().get();
return NS_OK;
}
already_AddRefed<DOMSVGPointList>
nsSVGPolyElement::Points()
{
@ -50,14 +38,6 @@ nsSVGPolyElement::Points()
return points.forget();
}
/* readonly attribute DOMSVGPointList animatedPoints; */
NS_IMETHODIMP
nsSVGPolyElement::GetAnimatedPoints(nsISupports * *aAnimatedPoints)
{
*aAnimatedPoints = AnimatedPoints().get();
return NS_OK;
}
already_AddRefed<DOMSVGPointList>
nsSVGPolyElement::AnimatedPoints()
{

View File

@ -6,7 +6,6 @@
#ifndef NS_SVGPOLYELEMENT_H_
#define NS_SVGPOLYELEMENT_H_
#include "nsIDOMSVGAnimatedPoints.h"
#include "nsSVGPathGeometryElement.h"
#include "SVGAnimatedPointList.h"
@ -18,17 +17,15 @@ namespace mozilla {
class DOMSVGPointList;
}
class nsSVGPolyElement : public nsSVGPolyElementBase,
public nsIDOMSVGAnimatedPoints
class nsSVGPolyElement : public nsSVGPolyElementBase
{
protected:
nsSVGPolyElement(already_AddRefed<nsINodeInfo> aNodeInfo);
public:
//interfaces
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_NSIDOMSVGANIMATEDPOINTS
// nsIContent interface
NS_IMETHOD_(bool) IsAttributeMapped(const nsIAtom* name) const;

View File

@ -317,7 +317,6 @@
#include "nsIDOMSVGAnimatedLength.h"
#include "nsIDOMSVGAnimatedNumber.h"
#include "nsIDOMSVGAnimatedPathData.h"
#include "nsIDOMSVGAnimatedPoints.h"
#include "nsIDOMSVGAnimatedRect.h"
#include "nsIDOMSVGAnimatedString.h"
#include "nsIDOMSVGAnimateElement.h"
@ -3321,13 +3320,11 @@ nsDOMClassInfo::Init()
DOM_CLASSINFO_MAP_BEGIN(SVGPolygonElement, nsIDOMSVGPolygonElement)
DOM_CLASSINFO_MAP_ENTRY(nsIDOMSVGPolygonElement)
DOM_CLASSINFO_MAP_ENTRY(nsIDOMSVGAnimatedPoints)
DOM_CLASSINFO_SVG_GRAPHIC_ELEMENT_MAP_ENTRIES
DOM_CLASSINFO_MAP_END
DOM_CLASSINFO_MAP_BEGIN(SVGPolylineElement, nsIDOMSVGPolylineElement)
DOM_CLASSINFO_MAP_ENTRY(nsIDOMSVGPolylineElement)
DOM_CLASSINFO_MAP_ENTRY(nsIDOMSVGAnimatedPoints)
DOM_CLASSINFO_SVG_GRAPHIC_ELEMENT_MAP_ENTRIES
DOM_CLASSINFO_MAP_END

View File

@ -24,7 +24,6 @@ XPIDLSRCS = \
nsIDOMSVGAnimatedLength.idl \
nsIDOMSVGAnimatedNumber.idl \
nsIDOMSVGAnimatedPathData.idl \
nsIDOMSVGAnimatedPoints.idl \
nsIDOMSVGAnimatedRect.idl \
nsIDOMSVGAnimatedString.idl \
nsIDOMSVGAnimateElement.idl \

View File

@ -1,14 +0,0 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "domstubs.idl"
[scriptable, uuid(ebf334b3-86ef-4bf3-8a92-d775c72defa4)]
interface nsIDOMSVGAnimatedPoints : nsISupports
{
readonly attribute nsISupports points;
readonly attribute nsISupports animatedPoints;
};