Bug 1455676 part 20. Remove now-unused AsDOMNode methods. r=qdot

This commit is contained in:
Boris Zbarsky
2018-05-29 22:58:50 -04:00
parent 7b635a8ba9
commit 81b6d160d1
17 changed files with 0 additions and 36 deletions

View File

@@ -79,8 +79,6 @@ public:
NS_DECL_CYCLE_COLLECTION_SKIPPABLE_SCRIPT_HOLDER_CLASS_AMBIGUOUS(Attr, NS_DECL_CYCLE_COLLECTION_SKIPPABLE_SCRIPT_HOLDER_CLASS_AMBIGUOUS(Attr,
nsIAttribute) nsIAttribute)
virtual nsIDOMNode* AsDOMNode() override { return this; }
// WebIDL // WebIDL
virtual JSObject* WrapNode(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override; virtual JSObject* WrapNode(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;

View File

@@ -48,7 +48,6 @@ public:
CloneDataNode(mozilla::dom::NodeInfo *aNodeInfo, CloneDataNode(mozilla::dom::NodeInfo *aNodeInfo,
bool aCloneText) const override; bool aCloneText) const override;
virtual nsIDOMNode* AsDOMNode() override { return this; }
#ifdef DEBUG #ifdef DEBUG
virtual void List(FILE* out, int32_t aIndent) const override; virtual void List(FILE* out, int32_t aIndent) const override;
virtual void DumpContent(FILE* out = stdout, int32_t aIndent = 0, virtual void DumpContent(FILE* out = stdout, int32_t aIndent = 0,

View File

@@ -65,8 +65,6 @@ public:
virtual bool IsNodeOfType(uint32_t aFlags) const override; virtual bool IsNodeOfType(uint32_t aFlags) const override;
virtual nsIDOMNode* AsDOMNode() override { return this; }
virtual nsresult BindToTree(nsIDocument* aDocument, nsIContent* aParent, virtual nsresult BindToTree(nsIDocument* aDocument, nsIContent* aParent,
nsIContent* aBindingParent, nsIContent* aBindingParent,
bool aCompileEventHandlers) override bool aCompileEventHandlers) override

View File

@@ -59,8 +59,6 @@ public:
CloneDataNode(mozilla::dom::NodeInfo *aNodeInfo, CloneDataNode(mozilla::dom::NodeInfo *aNodeInfo,
bool aCloneText) const override; bool aCloneText) const override;
virtual nsIDOMNode* AsDOMNode() override { return this; }
// WebIDL API // WebIDL API
void GetName(nsAString& aName) const; void GetName(nsAString& aName) const;
void GetPublicId(nsAString& aPublicId) const; void GetPublicId(nsAString& aPublicId) const;

View File

@@ -246,8 +246,6 @@ public:
virtual void DocAddSizeOfExcludingThis(nsWindowSizes& aWindowSizes) const override; virtual void DocAddSizeOfExcludingThis(nsWindowSizes& aWindowSizes) const override;
// DocAddSizeOfIncludingThis is inherited from nsIDocument. // DocAddSizeOfIncludingThis is inherited from nsIDocument.
virtual nsIDOMNode* AsDOMNode() override { return this; }
protected: protected:
friend class nsNodeUtils; friend class nsNodeUtils;

View File

@@ -587,8 +587,6 @@ public:
return NodeType() == ATTRIBUTE_NODE; return NodeType() == ATTRIBUTE_NODE;
} }
virtual nsIDOMNode* AsDOMNode() = 0;
/** /**
* Return if this node has any children. * Return if this node has any children.
*/ */
@@ -2121,11 +2119,6 @@ protected:
nsSlots* mSlots; nsSlots* mSlots;
}; };
inline nsIDOMNode* GetAsDOMNode(nsINode* aNode)
{
return aNode ? aNode->AsDOMNode() : nullptr;
}
// Useful inline function for getting a node given an nsIContent and an // Useful inline function for getting a node given an nsIContent and an
// nsIDocument. Returns the first argument cast to nsINode if it is non-null, // nsIDocument. Returns the first argument cast to nsINode if it is non-null,
// otherwise returns the second (which may be null). We use type variables // otherwise returns the second (which may be null). We use type variables

View File

@@ -63,8 +63,6 @@ public:
nsresult AppendTextForNormalize(const char16_t* aBuffer, uint32_t aLength, nsresult AppendTextForNormalize(const char16_t* aBuffer, uint32_t aLength,
bool aNotify, nsIContent* aNextSibling); bool aNotify, nsIContent* aNextSibling);
virtual nsIDOMNode* AsDOMNode() override { return this; }
// Need to have a copy here because including nsDocument.h in this file will // Need to have a copy here because including nsDocument.h in this file will
// fail to build on Windows. // fail to build on Windows.
static bool IsShadowDOMEnabled(JSContext* aCx, JSObject* aObject); static bool IsShadowDOMEnabled(JSContext* aCx, JSObject* aObject);

View File

@@ -35,8 +35,6 @@ public:
bool aPreallocateChildren) const override; bool aPreallocateChildren) const override;
virtual nsresult SetAcceptHeader(nsIHttpChannel* aChannel) override; virtual nsresult SetAcceptHeader(nsIHttpChannel* aChannel) override;
virtual nsIDOMNode* AsDOMNode() override { return this; }
// WebIDL // WebIDL
static already_AddRefed<HTMLAudioElement> static already_AddRefed<HTMLAudioElement>

View File

@@ -45,8 +45,6 @@ public:
nsIPrincipal* aSubjectPrincipal, nsIPrincipal* aSubjectPrincipal,
bool aNotify) override; bool aNotify) override;
virtual nsIDOMNode* AsDOMNode() override { return this; }
bool Disabled() const bool Disabled() const
{ {
return GetBoolAttr(nsGkAtoms::disabled); return GetBoolAttr(nsGkAtoms::disabled);

View File

@@ -269,8 +269,6 @@ public:
MOZ_CAN_RUN_SCRIPT MOZ_CAN_RUN_SCRIPT
nsSize GetWidthHeightForImage(RefPtr<imgRequestProxy>& aImageRequest); nsSize GetWidthHeightForImage(RefPtr<imgRequestProxy>& aImageRequest);
virtual nsIDOMNode* AsDOMNode() override { return this; }
public: public:
// Implementation for nsIContent // Implementation for nsIContent
virtual nsresult BindToTree(nsIDocument* aDocument, nsIContent* aParent, virtual nsresult BindToTree(nsIDocument* aDocument, nsIContent* aParent,

View File

@@ -90,8 +90,6 @@ public:
virtual void GetLinkTarget(nsAString& aTarget) override; virtual void GetLinkTarget(nsAString& aTarget) override;
virtual already_AddRefed<nsIURI> GetHrefURI() const override; virtual already_AddRefed<nsIURI> GetHrefURI() const override;
virtual nsIDOMNode* AsDOMNode() override { return this; }
virtual void NodeInfoChanged(nsIDocument* aOldDoc) override virtual void NodeInfoChanged(nsIDocument* aOldDoc) override
{ {
ClearHasPendingLinkUpdate(); ClearHasPendingLinkUpdate();

View File

@@ -306,7 +306,6 @@ public:
} }
virtual void ClearAnyCachedPath() {} virtual void ClearAnyCachedPath() {}
nsIDOMNode* AsDOMNode() final { return this; }
virtual bool IsTransformable() { return false; } virtual bool IsTransformable() { return false; }
// WebIDL // WebIDL

View File

@@ -36,8 +36,6 @@ public:
virtual nsresult Clone(mozilla::dom::NodeInfo* aNodeInfo, nsINode** aResult, virtual nsresult Clone(mozilla::dom::NodeInfo* aNodeInfo, nsINode** aResult,
bool aPreallocateChildren) const override; bool aPreallocateChildren) const override;
virtual nsIDOMNode* AsDOMNode() override { return this; }
void AppendInsertedChild(nsIContent* aChild, bool aNotify) void AppendInsertedChild(nsIContent* aChild, bool aNotify)
{ {
// Appending an inserted child causes the inserted // Appending an inserted child causes the inserted

View File

@@ -51,7 +51,6 @@ public:
CloneDataNode(mozilla::dom::NodeInfo *aNodeInfo, CloneDataNode(mozilla::dom::NodeInfo *aNodeInfo,
bool aCloneText) const override; bool aCloneText) const override;
virtual nsIDOMNode* AsDOMNode() override { return this; }
#ifdef DEBUG #ifdef DEBUG
virtual void List(FILE* out, int32_t aIndent) const override; virtual void List(FILE* out, int32_t aIndent) const override;
virtual void DumpContent(FILE* out, int32_t aIndent,bool aDumpAll) const override; virtual void DumpContent(FILE* out, int32_t aIndent,bool aDumpAll) const override;

View File

@@ -39,8 +39,6 @@ public:
virtual void DumpContent(FILE* out, int32_t aIndent, bool aDumpAll) const override; virtual void DumpContent(FILE* out, int32_t aIndent, bool aDumpAll) const override;
#endif #endif
virtual nsIDOMNode* AsDOMNode() override { return this; }
// WebIDL API // WebIDL API
void GetTarget(nsAString& aTarget) void GetTarget(nsAString& aTarget)
{ {

View File

@@ -28,8 +28,6 @@ public:
virtual nsresult Clone(mozilla::dom::NodeInfo *aNodeInfo, nsINode **aResult, virtual nsresult Clone(mozilla::dom::NodeInfo *aNodeInfo, nsINode **aResult,
bool aPreallocateChildren) const override; bool aPreallocateChildren) const override;
virtual nsIDOMNode* AsDOMNode() override { return this; }
virtual void UnbindFromTree(bool aDeep = true, virtual void UnbindFromTree(bool aDeep = true,
bool aNullParent = true) override; bool aNullParent = true) override;

View File

@@ -413,8 +413,6 @@ public:
mBindingParent = aBindingParent; mBindingParent = aBindingParent;
} }
virtual nsIDOMNode* AsDOMNode() override { return this; }
virtual bool IsEventAttributeNameInternal(nsAtom* aName) override; virtual bool IsEventAttributeNameInternal(nsAtom* aName) override;
typedef mozilla::dom::DOMString DOMString; typedef mozilla::dom::DOMString DOMString;