Index: Source/core/dom/Node.h |
diff --git a/Source/core/dom/Node.h b/Source/core/dom/Node.h |
index 7465bdd137d45a83afa4d6274d056a4c3cbfb9a6..0fab26e36c229642e40cbb5796a7fa86bf371fab 100644 |
--- a/Source/core/dom/Node.h |
+++ b/Source/core/dom/Node.h |
@@ -171,6 +171,9 @@ public: |
virtual String nodeValue() const; |
virtual void setNodeValue(const String&); |
virtual NodeType nodeType() const = 0; |
+ // FIXME: We should get rid of parentNode() usage and replace with parent() |
+ // to bring us inline with the API of other tree structures in the codebase. |
+ ContainerNode* parent() const { return parentNode(); } |
ContainerNode* parentNode() const; |
Element* parentElement() const; |
Node* previousSibling() const { return m_previous; } |