Bug 833446: Remove nsIDOMSVGPolylineElement r=peterv

This commit is contained in:
David Zbarsky 2013-02-02 15:23:18 -05:00
parent 3c171d7571
commit d59420f0b9
6 changed files with 4 additions and 54 deletions

View File

@ -6,8 +6,6 @@
#include "mozilla/dom/SVGPolylineElement.h"
#include "mozilla/dom/SVGPolylineElementBinding.h"
DOMCI_NODE_DATA(SVGPolylineElement, mozilla::dom::SVGPolylineElement)
NS_IMPL_NS_NEW_NAMESPACED_SVG_ELEMENT(Polyline)
namespace mozilla {
@ -22,15 +20,9 @@ SVGPolylineElement::WrapNode(JSContext *aCx, JSObject *aScope, bool *aTriedToWra
//----------------------------------------------------------------------
// nsISupports methods
NS_IMPL_ADDREF_INHERITED(SVGPolylineElement,SVGPolylineElementBase)
NS_IMPL_RELEASE_INHERITED(SVGPolylineElement,SVGPolylineElementBase)
NS_INTERFACE_TABLE_HEAD(SVGPolylineElement)
NS_NODE_INTERFACE_TABLE4(SVGPolylineElement, nsIDOMNode, nsIDOMElement,
nsIDOMSVGElement,
nsIDOMSVGPolylineElement)
NS_DOM_INTERFACE_MAP_ENTRY_CLASSINFO(SVGPolylineElement)
NS_INTERFACE_MAP_END_INHERITING(SVGPolylineElementBase)
NS_IMPL_ISUPPORTS_INHERITED3(SVGPolylineElement, SVGPolylineElementBase,
nsIDOMNode, nsIDOMElement,
nsIDOMSVGElement)
//----------------------------------------------------------------------
// Implementation

View File

@ -7,7 +7,6 @@
#define mozilla_dom_SVGPolylineElement_h
#include "nsSVGPolyElement.h"
#include "nsIDOMSVGPolylineElement.h"
nsresult NS_NewSVGPolylineElement(nsIContent **aResult,
already_AddRefed<nsINodeInfo> aNodeInfo);
@ -18,7 +17,7 @@ namespace mozilla {
namespace dom {
class SVGPolylineElement MOZ_FINAL : public SVGPolylineElementBase,
public nsIDOMSVGPolylineElement
public nsIDOMSVGElement
{
protected:
SVGPolylineElement(already_AddRefed<nsINodeInfo> aNodeInfo);
@ -30,7 +29,6 @@ public:
// interfaces:
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_NSIDOMSVGPOLYLINEELEMENT
// xxx I wish we could use virtual inheritance
NS_FORWARD_NSIDOMNODE_TO_NSINODE
@ -39,7 +37,6 @@ public:
// nsIContent interface
virtual nsresult Clone(nsINodeInfo *aNodeInfo, nsINode **aResult) const;
virtual nsXPCClassInfo* GetClassInfo();
virtual nsIDOMNode* AsDOMNode() { return this; }
};

View File

@ -328,7 +328,6 @@
#include "nsIDOMSVGMarkerElement.h"
#include "nsIDOMSVGMaskElement.h"
#include "nsIDOMSVGNumber.h"
#include "nsIDOMSVGPolylineElement.h"
#include "nsIDOMSVGRect.h"
#include "nsIDOMSVGRectElement.h"
#include "nsIDOMSVGScriptElement.h"
@ -1113,8 +1112,6 @@ static nsDOMClassInfoData sClassInfoData[] = {
ELEMENT_SCRIPTABLE_FLAGS)
NS_DEFINE_CLASSINFO_DATA(SVGMaskElement, nsElementSH,
ELEMENT_SCRIPTABLE_FLAGS)
NS_DEFINE_CLASSINFO_DATA(SVGPolylineElement, nsElementSH,
ELEMENT_SCRIPTABLE_FLAGS)
NS_DEFINE_CLASSINFO_DATA(SVGRectElement, nsElementSH,
ELEMENT_SCRIPTABLE_FLAGS)
NS_DEFINE_CLASSINFO_DATA(SVGScriptElement, nsElementSH,
@ -3129,11 +3126,6 @@ nsDOMClassInfo::Init()
DOM_CLASSINFO_SVG_ELEMENT_MAP_ENTRIES
DOM_CLASSINFO_MAP_END
DOM_CLASSINFO_MAP_BEGIN(SVGPolylineElement, nsIDOMSVGPolylineElement)
DOM_CLASSINFO_MAP_ENTRY(nsIDOMSVGPolylineElement)
DOM_CLASSINFO_SVG_GRAPHIC_ELEMENT_MAP_ENTRIES
DOM_CLASSINFO_MAP_END
DOM_CLASSINFO_MAP_BEGIN(SVGRectElement, nsIDOMSVGRectElement)
DOM_CLASSINFO_MAP_ENTRY(nsIDOMSVGRectElement)
DOM_CLASSINFO_SVG_GRAPHIC_ELEMENT_MAP_ENTRIES

View File

@ -222,7 +222,6 @@ DOMCI_CLASS(SVGFilterElement)
DOMCI_CLASS(SVGImageElement)
DOMCI_CLASS(SVGMarkerElement)
DOMCI_CLASS(SVGMaskElement)
DOMCI_CLASS(SVGPolylineElement)
DOMCI_CLASS(SVGRectElement)
DOMCI_CLASS(SVGScriptElement)
DOMCI_CLASS(SVGStopElement)

View File

@ -35,7 +35,6 @@ XPIDLSRCS = \
nsIDOMSVGMarkerElement.idl \
nsIDOMSVGMaskElement.idl \
nsIDOMSVGNumber.idl \
nsIDOMSVGPolylineElement.idl \
nsIDOMSVGRect.idl \
nsIDOMSVGRectElement.idl \
nsIDOMSVGScriptElement.idl \

View File

@ -1,29 +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"
[scriptable, uuid(189F12DA-B61D-4AD5-9EE0-0A7F4CE59970)]
interface nsIDOMSVGPolylineElement
: 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,
nsIDOMSVGAnimatedPoints
*/
{
};