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

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

Issue 239703007: Rename Node::lastDescendant() / Node::highestAncestor() for clarity (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rename highestAncestor() as well Created 6 years, 8 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 | « Source/core/dom/ContainerNode.h ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »
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 04c2a801fdf4c899b3ce949eff900076c7fa8915..8999a9b1ffc7e79581607f88a489d6a5710b39b7 100644
--- a/Source/core/dom/Node.h
+++ b/Source/core/dom/Node.h
@@ -205,7 +205,7 @@ public:
String textContent(bool convertBRsToNewlines = false) const;
void setTextContent(const String&);
- Node& lastDescendant() const;
+ Node& lastDescendantOrSelf() const;
// Other methods (not part of DOM)
@@ -277,7 +277,7 @@ public:
ContainerNode* parentOrShadowHostNode() const;
Element* parentOrShadowHostElement() const;
void setParentOrShadowHostNode(ContainerNode*);
- Node& highestAncestor() const;
+ Node& highestAncestorOrSelf() const;
// Knows about all kinds of hosts.
ContainerNode* parentOrShadowHostOrTemplateHostNode() const;
« no previous file with comments | « Source/core/dom/ContainerNode.h ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698