Bug 833446: Remove nsIDOMSVGEllipseElement r=peterv

This commit is contained in:
David Zbarsky 2013-02-02 15:23:15 -05:00
Родитель 08a5a13ddd
Коммит 1e25a54c2f
6 изменённых файлов: 4 добавлений и 87 удалений

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

@ -8,8 +8,6 @@
#include "mozilla/dom/SVGEllipseElementBinding.h"
#include "gfxContext.h"
DOMCI_NODE_DATA(SVGEllipseElement, mozilla::dom::SVGEllipseElement)
NS_IMPL_NS_NEW_NAMESPACED_SVG_ELEMENT(Ellipse)
namespace mozilla {
@ -32,15 +30,9 @@ nsSVGElement::LengthInfo SVGEllipseElement::sLengthInfo[4] =
//----------------------------------------------------------------------
// nsISupports methods
NS_IMPL_ADDREF_INHERITED(SVGEllipseElement,SVGEllipseElementBase)
NS_IMPL_RELEASE_INHERITED(SVGEllipseElement,SVGEllipseElementBase)
NS_INTERFACE_TABLE_HEAD(SVGEllipseElement)
NS_NODE_INTERFACE_TABLE4(SVGEllipseElement, nsIDOMNode, nsIDOMElement,
nsIDOMSVGElement,
nsIDOMSVGEllipseElement)
NS_DOM_INTERFACE_MAP_ENTRY_CLASSINFO(SVGEllipseElement)
NS_INTERFACE_MAP_END_INHERITING(SVGEllipseElementBase)
NS_IMPL_ISUPPORTS_INHERITED3(SVGEllipseElement, SVGEllipseElementBase,
nsIDOMNode, nsIDOMElement,
nsIDOMSVGElement)
//----------------------------------------------------------------------
// Implementation
@ -59,52 +51,24 @@ NS_IMPL_ELEMENT_CLONE_WITH_INIT(SVGEllipseElement)
//----------------------------------------------------------------------
// nsIDOMSVGEllipseElement methods
/* readonly attribute nsIDOMSVGAnimatedLength cx; */
NS_IMETHODIMP SVGEllipseElement::GetCx(nsIDOMSVGAnimatedLength * *aCx)
{
*aCx = Cx().get();
return NS_OK;
}
already_AddRefed<SVGAnimatedLength>
SVGEllipseElement::Cx()
{
return mLengthAttributes[CX].ToDOMAnimatedLength(this);
}
/* readonly attribute nsIDOMSVGAnimatedLength cy; */
NS_IMETHODIMP SVGEllipseElement::GetCy(nsIDOMSVGAnimatedLength * *aCy)
{
*aCy = Cy().get();
return NS_OK;
}
already_AddRefed<SVGAnimatedLength>
SVGEllipseElement::Cy()
{
return mLengthAttributes[CY].ToDOMAnimatedLength(this);
}
/* readonly attribute nsIDOMSVGAnimatedLength rx; */
NS_IMETHODIMP SVGEllipseElement::GetRx(nsIDOMSVGAnimatedLength * *aRx)
{
*aRx = Rx().get();
return NS_OK;
}
already_AddRefed<SVGAnimatedLength>
SVGEllipseElement::Rx()
{
return mLengthAttributes[RX].ToDOMAnimatedLength(this);
}
/* readonly attribute nsIDOMSVGAnimatedLength ry; */
NS_IMETHODIMP SVGEllipseElement::GetRy(nsIDOMSVGAnimatedLength * *aRy)
{
*aRy = Ry().get();
return NS_OK;
}
already_AddRefed<SVGAnimatedLength>
SVGEllipseElement::Ry()
{

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

@ -7,7 +7,6 @@
#define mozilla_dom_SVGEllipseElement_h
#include "nsSVGPathGeometryElement.h"
#include "nsIDOMSVGEllipseElement.h"
#include "nsSVGLength2.h"
nsresult NS_NewSVGEllipseElement(nsIContent **aResult,
@ -19,7 +18,7 @@ namespace dom {
typedef nsSVGPathGeometryElement SVGEllipseElementBase;
class SVGEllipseElement MOZ_FINAL : public SVGEllipseElementBase,
public nsIDOMSVGEllipseElement
public nsIDOMSVGElement
{
protected:
SVGEllipseElement(already_AddRefed<nsINodeInfo> aNodeInfo);
@ -30,7 +29,6 @@ protected:
public:
// interfaces:
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_NSIDOMSVGELLIPSEELEMENT
// xxx I wish we could use virtual inheritance
NS_FORWARD_NSIDOMNODE_TO_NSINODE
@ -45,8 +43,6 @@ public:
virtual nsresult Clone(nsINodeInfo *aNodeInfo, nsINode **aResult) const;
virtual nsXPCClassInfo* GetClassInfo();
virtual nsIDOMNode* AsDOMNode() { return this; }
// WebIDL

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

@ -321,7 +321,6 @@
#include "nsIDOMSVGClipPathElement.h"
#include "nsIDOMSVGDocument.h"
#include "nsIDOMSVGElement.h"
#include "nsIDOMSVGEllipseElement.h"
#include "nsIDOMSVGEvent.h"
#include "nsIDOMSVGFilterElement.h"
#include "nsIDOMSVGFilters.h"
@ -1069,8 +1068,6 @@ static nsDOMClassInfoData sClassInfoData[] = {
DOM_DEFAULT_SCRIPTABLE_FLAGS)
NS_DEFINE_CLASSINFO_DATA(SVGClipPathElement, nsElementSH,
ELEMENT_SCRIPTABLE_FLAGS)
NS_DEFINE_CLASSINFO_DATA(SVGEllipseElement, nsElementSH,
ELEMENT_SCRIPTABLE_FLAGS)
NS_DEFINE_CLASSINFO_DATA(SVGFEBlendElement, nsElementSH,
ELEMENT_SCRIPTABLE_FLAGS)
NS_DEFINE_CLASSINFO_DATA(SVGFEColorMatrixElement, nsElementSH,
@ -3005,11 +3002,6 @@ nsDOMClassInfo::Init()
DOM_CLASSINFO_SVG_GRAPHIC_ELEMENT_MAP_ENTRIES
DOM_CLASSINFO_MAP_END
DOM_CLASSINFO_MAP_BEGIN(SVGEllipseElement, nsIDOMSVGEllipseElement)
DOM_CLASSINFO_MAP_ENTRY(nsIDOMSVGEllipseElement)
DOM_CLASSINFO_SVG_GRAPHIC_ELEMENT_MAP_ENTRIES
DOM_CLASSINFO_MAP_END
DOM_CLASSINFO_MAP_BEGIN(SVGFEBlendElement, nsIDOMSVGFEBlendElement)
DOM_CLASSINFO_MAP_ENTRY(nsIDOMSVGFEBlendElement)
DOM_CLASSINFO_MAP_ENTRY(nsIDOMSVGFilterPrimitiveStandardAttributes)

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

@ -195,7 +195,6 @@ DOMCI_CLASS(SVGAElement)
DOMCI_CLASS(SVGMpathElement)
DOMCI_CLASS(TimeEvent)
DOMCI_CLASS(SVGClipPathElement)
DOMCI_CLASS(SVGEllipseElement)
DOMCI_CLASS(SVGFEBlendElement)
DOMCI_CLASS(SVGFEColorMatrixElement)
DOMCI_CLASS(SVGFEComponentTransferElement)

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

@ -27,7 +27,6 @@ XPIDLSRCS = \
nsIDOMSVGClipPathElement.idl \
nsIDOMSVGDocument.idl \
nsIDOMSVGElement.idl \
nsIDOMSVGEllipseElement.idl \
nsIDOMSVGEvent.idl \
nsIDOMSVGFilterElement.idl \
nsIDOMSVGFilters.idl \

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

@ -1,33 +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 "nsIDOMSVGElement.idl"
interface nsIDOMSVGAnimatedLength;
[scriptable, uuid(C03C3C5F-7510-4392-BA7A-DADC0AB92E28)]
interface nsIDOMSVGEllipseElement
: nsIDOMSVGElement
/*
The SVG DOM makes use of multiple interface inheritance.
Since XPCOM only supports single interface inheritance,
the best thing that we can do is to promise that whenever
an object implements _this_ interface it will also
implement the following interfaces. (We then have to QI to
hop between them.)
nsIDOMSVGTests,
nsIDOMSVGLangSpace,
nsIDOMSVGExternalResourcesRequired,
nsIDOMSVGStylable,
nsIDOMSVGTransformable,
events::nsIDOMEventTarget
*/
{
readonly attribute nsIDOMSVGAnimatedLength cx;
readonly attribute nsIDOMSVGAnimatedLength cy;
readonly attribute nsIDOMSVGAnimatedLength rx;
readonly attribute nsIDOMSVGAnimatedLength ry;
};