diff --git a/dom/base/nsINode.h b/dom/base/nsINode.h index d465411c2ff0..9b0fb6158ba3 100644 --- a/dom/base/nsINode.h +++ b/dom/base/nsINode.h @@ -415,8 +415,6 @@ public: eDOCUMENT = 1 << 1, /** nsIAttribute nodes */ eATTRIBUTE = 1 << 2, - /** text nodes */ - eTEXT = 1 << 3, /** xml processing instructions */ ePROCESSING_INSTRUCTION = 1 << 4, /** comment nodes */ diff --git a/dom/base/nsTextNode.cpp b/dom/base/nsTextNode.cpp index b5b18944770f..2623de5c0803 100644 --- a/dom/base/nsTextNode.cpp +++ b/dom/base/nsTextNode.cpp @@ -110,7 +110,7 @@ nsTextNode::WrapNode(JSContext *aCx, JS::Handle aGivenProto) bool nsTextNode::IsNodeOfType(uint32_t aFlags) const { - return !(aFlags & ~(eTEXT | eDATA_NODE)); + return !(aFlags & ~eDATA_NODE); } already_AddRefed diff --git a/dom/xml/CDATASection.cpp b/dom/xml/CDATASection.cpp index c7da437ceeff..62a8df19f765 100644 --- a/dom/xml/CDATASection.cpp +++ b/dom/xml/CDATASection.cpp @@ -26,7 +26,7 @@ CDATASection::WrapNode(JSContext *aCx, JS::Handle aGivenProto) bool CDATASection::IsNodeOfType(uint32_t aFlags) const { - return !(aFlags & ~(eTEXT | eDATA_NODE)); + return !(aFlags & ~eDATA_NODE); } already_AddRefed