Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(742)

Unified Diff: Source/core/dom/Node.h

Issue 125503002: We should unify various forms of tree traversal in DOM (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/dom/NodeTraversal.h » ('j') | Source/core/dom/NodeTraversal.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Node.h
diff --git a/Source/core/dom/Node.h b/Source/core/dom/Node.h
index c1e3cb587f8702f4ba068ba2105f3a26d535526f..d036ed0090909f7310075eb356b000a2b416afb2 100644
--- a/Source/core/dom/Node.h
+++ b/Source/core/dom/Node.h
@@ -171,6 +171,7 @@ public:
virtual String nodeValue() const;
virtual void setNodeValue(const String&);
virtual NodeType nodeType() const = 0;
+ ContainerNode* parent() const { return parentNode(); }
Inactive 2014/01/07 14:37:03 Longer term, we probably want to get rid of parent
ContainerNode* parentNode() const;
Element* parentElement() const;
Node* previousSibling() const { return m_previous; }
« no previous file with comments | « no previous file | Source/core/dom/NodeTraversal.h » ('j') | Source/core/dom/NodeTraversal.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698