Bug 1134280 - Get rid of Tag() - patch 6 - Remove nsINode::Tag(), r=smaug
authorAndrea Marchesini <amarchesini@mozilla.com>
Tue, 03 Mar 2015 11:09:01 +0000
changeset 247004 0d6aeba7ac3037738e22676c18f7ab017f67780a
parent 247003 a94a92b42ef901e67a5afd03aca15430f417c8fe
child 247005 c1068d5d6a574531e915f8573ae3e356e47d9e5a
push id884
push userdburns@mozilla.com
push dateTue, 03 Mar 2015 15:29:12 +0000
reviewerssmaug
bugs1134280
milestone39.0a1
Bug 1134280 - Get rid of Tag() - patch 6 - Remove nsINode::Tag(), r=smaug
dom/base/nsINode.h
--- a/dom/base/nsINode.h
+++ b/dom/base/nsINode.h
@@ -243,18 +243,18 @@ private:
 
 // Categories of node properties
 // 0 is global.
 #define DOM_USER_DATA         1
 #define SMIL_MAPPED_ATTR_ANIMVAL 2
 
 // IID for the nsINode interface
 #define NS_INODE_IID \
-{ 0x9c090b44, 0x754b, 0x413c, \
- { 0x9d, 0xd5, 0xe4, 0x3d, 0xc4, 0x54, 0x96, 0xe3 } }
+{ 0xe8fdd227, 0x27da, 0x46ee, \
+  { 0xbe, 0xf3, 0x1a, 0xef, 0x5a, 0x8f, 0xc5, 0xb4 } }
 
 /**
  * An internal interface that abstracts some DOMNode-related parts that both
  * nsIContent and nsIDocument share.  An instance of this interface has a list
  * of nsIContent children and provides access to them.
  */
 class nsINode : public mozilla::dom::EventTarget
 {
@@ -559,27 +559,16 @@ public:
     return mNodeInfo->NodeName();
   }
   const nsString& LocalName() const
   {
     return mNodeInfo->LocalName();
   }
 
   /**
-   * Get the tag for this element. This will always return a non-null atom
-   * pointer (as implied by the naming of the method).  For elements this is
-   * the non-namespaced tag, and for other nodes it's something like "#text",
-   * "#comment", "#document", etc.
-   */
-  nsIAtom* Tag() const
-  {
-    return mNodeInfo->NameAtom();
-  }
-
-  /**
    * Get the NodeInfo for this element
    * @return the nodes node info
    */
   inline mozilla::dom::NodeInfo* NodeInfo() const
   {
     return mNodeInfo;
   }