Bug 1432944 part 9. Remove nsIDOMElement::HasAttribute. r=mccr8
authorBoris Zbarsky <bzbarsky@mit.edu>
Mon, 29 Jan 2018 23:27:59 -0500
changeset 748737 a5250222f3d5e1c1a21990cef6735bd713ba7241
parent 748736 e7ad723a13ffdea0ced1ea4be9c4016420ddfcea
child 748738 a59431cb28a1315ae036b2be828242da97ef54cc
push id97228
push usersfraser@mozilla.com
push dateTue, 30 Jan 2018 10:21:04 +0000
reviewersmccr8
bugs1432944
milestone60.0a1
Bug 1432944 part 9. Remove nsIDOMElement::HasAttribute. r=mccr8 MozReview-Commit-ID: KDeeVkeRmQr
dom/base/Element.h
dom/interfaces/core/nsIDOMElement.idl
--- a/dom/base/Element.h
+++ b/dom/base/Element.h
@@ -2206,17 +2206,10 @@ NS_IMETHOD GetAttribute(const nsAString&
   return NS_OK;                                                               \
 }                                                                             \
 NS_IMETHOD SetAttribute(const nsAString& name,                                \
                         const nsAString& value) override                      \
 {                                                                             \
   mozilla::ErrorResult rv;                                                    \
   Element::SetAttribute(name, value, nullptr, rv);                            \
   return rv.StealNSResult();                                                  \
-}                                                                             \
-using Element::HasAttribute;                                                  \
-NS_IMETHOD HasAttribute(const nsAString& name,                                \
-                           bool* _retval) final override                      \
-{                                                                             \
-  *_retval = HasAttribute(name);                                              \
-  return NS_OK;                                                               \
 }
 #endif // mozilla_dom_Element_h__
--- a/dom/interfaces/core/nsIDOMElement.idl
+++ b/dom/interfaces/core/nsIDOMElement.idl
@@ -25,10 +25,9 @@ interface nsIDOMMozNamedAttrMap;
  */
 
 [uuid(6289999b-1008-4269-b42a-413ec5a9d3f4)]
 interface nsIDOMElement : nsIDOMNode
 {
   DOMString          getAttribute(in DOMString name);
   void               setAttribute(in DOMString name, 
                                   in DOMString value);
-  boolean            hasAttribute(in DOMString name);
 };