mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 833446: Remove nsIDOMSVGSwitchElement r=peterv
This commit is contained in:
parent
b6cdb97b40
commit
4365bfe031
@ -12,8 +12,6 @@
|
||||
#include "mozilla/Preferences.h"
|
||||
#include "mozilla/dom/SVGSwitchElementBinding.h"
|
||||
|
||||
DOMCI_NODE_DATA(SVGSwitchElement, mozilla::dom::SVGSwitchElement)
|
||||
|
||||
NS_IMPL_NS_NEW_NAMESPACED_SVG_ELEMENT(Switch)
|
||||
|
||||
namespace mozilla {
|
||||
@ -41,9 +39,8 @@ NS_IMPL_ADDREF_INHERITED(SVGSwitchElement,SVGSwitchElementBase)
|
||||
NS_IMPL_RELEASE_INHERITED(SVGSwitchElement,SVGSwitchElementBase)
|
||||
|
||||
NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(SVGSwitchElement)
|
||||
NS_NODE_INTERFACE_TABLE4(SVGSwitchElement, nsIDOMNode, nsIDOMElement,
|
||||
nsIDOMSVGElement, nsIDOMSVGSwitchElement)
|
||||
NS_DOM_INTERFACE_MAP_ENTRY_CLASSINFO(SVGSwitchElement)
|
||||
NS_NODE_INTERFACE_TABLE3(SVGSwitchElement, nsIDOMNode, nsIDOMElement,
|
||||
nsIDOMSVGElement)
|
||||
NS_INTERFACE_MAP_END_INHERITING(SVGSwitchElementBase)
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
@ -6,8 +6,7 @@
|
||||
#ifndef mozilla_dom_SVGSwitchElement_h
|
||||
#define mozilla_dom_SVGSwitchElement_h
|
||||
|
||||
#include "nsIDOMSVGSwitchElement.h"
|
||||
#include "SVGGraphicsElement.h"
|
||||
#include "mozilla/dom/SVGGraphicsElement.h"
|
||||
|
||||
nsresult NS_NewSVGSwitchElement(nsIContent **aResult,
|
||||
already_AddRefed<nsINodeInfo> aNodeInfo);
|
||||
@ -18,7 +17,7 @@ namespace dom {
|
||||
typedef SVGGraphicsElement SVGSwitchElementBase;
|
||||
|
||||
class SVGSwitchElement MOZ_FINAL : public SVGSwitchElementBase,
|
||||
public nsIDOMSVGSwitchElement
|
||||
public nsIDOMSVGElement
|
||||
{
|
||||
friend class nsSVGSwitchFrame;
|
||||
protected:
|
||||
@ -37,8 +36,6 @@ public:
|
||||
NS_DECL_ISUPPORTS_INHERITED
|
||||
NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(SVGSwitchElement,
|
||||
SVGSwitchElementBase)
|
||||
NS_DECL_NSIDOMSVGSWITCHELEMENT
|
||||
|
||||
// xxx I wish we could use virtual inheritance
|
||||
NS_FORWARD_NSIDOMNODE_TO_NSINODE
|
||||
NS_FORWARD_NSIDOMELEMENT_TO_GENERIC
|
||||
@ -54,8 +51,6 @@ public:
|
||||
|
||||
virtual nsresult Clone(nsINodeInfo *aNodeInfo, nsINode **aResult) const;
|
||||
|
||||
virtual nsXPCClassInfo* GetClassInfo();
|
||||
|
||||
virtual nsIDOMNode* AsDOMNode() { return this; }
|
||||
private:
|
||||
void UpdateActiveChild()
|
||||
|
@ -329,7 +329,6 @@
|
||||
#include "nsIDOMSVGMaskElement.h"
|
||||
#include "nsIDOMSVGNumber.h"
|
||||
#include "nsIDOMSVGRect.h"
|
||||
#include "nsIDOMSVGSwitchElement.h"
|
||||
#include "nsIDOMSVGSymbolElement.h"
|
||||
#include "nsIDOMSVGTextElement.h"
|
||||
#include "nsIDOMSVGTextPathElement.h"
|
||||
@ -1092,8 +1091,6 @@ static nsDOMClassInfoData sClassInfoData[] = {
|
||||
ELEMENT_SCRIPTABLE_FLAGS)
|
||||
NS_DEFINE_CLASSINFO_DATA(SVGMaskElement, nsElementSH,
|
||||
ELEMENT_SCRIPTABLE_FLAGS)
|
||||
NS_DEFINE_CLASSINFO_DATA(SVGSwitchElement, nsElementSH,
|
||||
ELEMENT_SCRIPTABLE_FLAGS)
|
||||
NS_DEFINE_CLASSINFO_DATA(SVGSymbolElement, nsElementSH,
|
||||
ELEMENT_SCRIPTABLE_FLAGS)
|
||||
NS_DEFINE_CLASSINFO_DATA(SVGTextElement, nsElementSH,
|
||||
@ -3075,11 +3072,6 @@ nsDOMClassInfo::Init()
|
||||
DOM_CLASSINFO_SVG_ELEMENT_MAP_ENTRIES
|
||||
DOM_CLASSINFO_MAP_END
|
||||
|
||||
DOM_CLASSINFO_MAP_BEGIN(SVGSwitchElement, nsIDOMSVGSwitchElement)
|
||||
DOM_CLASSINFO_MAP_ENTRY(nsIDOMSVGSwitchElement)
|
||||
DOM_CLASSINFO_SVG_GRAPHIC_ELEMENT_MAP_ENTRIES
|
||||
DOM_CLASSINFO_MAP_END
|
||||
|
||||
DOM_CLASSINFO_MAP_BEGIN(SVGSymbolElement, nsIDOMSVGSymbolElement)
|
||||
DOM_CLASSINFO_MAP_ENTRY(nsIDOMEventTarget)
|
||||
DOM_CLASSINFO_MAP_ENTRY(nsIDOMSVGSymbolElement)
|
||||
|
@ -222,7 +222,6 @@ DOMCI_CLASS(SVGFilterElement)
|
||||
DOMCI_CLASS(SVGImageElement)
|
||||
DOMCI_CLASS(SVGMarkerElement)
|
||||
DOMCI_CLASS(SVGMaskElement)
|
||||
DOMCI_CLASS(SVGSwitchElement)
|
||||
DOMCI_CLASS(SVGSymbolElement)
|
||||
DOMCI_CLASS(SVGTextElement)
|
||||
DOMCI_CLASS(SVGTextPathElement)
|
||||
|
@ -37,7 +37,6 @@ XPIDLSRCS = \
|
||||
nsIDOMSVGNumber.idl \
|
||||
nsIDOMSVGRect.idl \
|
||||
nsIDOMSVGStringList.idl \
|
||||
nsIDOMSVGSwitchElement.idl \
|
||||
nsIDOMSVGSymbolElement.idl \
|
||||
nsIDOMSVGTextContentElement.idl \
|
||||
nsIDOMSVGTextElement.idl \
|
||||
|
@ -1,28 +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(101FC4D8-5D79-41B5-B759-142BF401FA36)]
|
||||
interface nsIDOMSVGSwitchElement
|
||||
: 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
|
||||
*/
|
||||
{
|
||||
|
||||
};
|
Loading…
Reference in New Issue
Block a user