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

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

Issue 54803003: Have Node::lastDescendant() return a reference (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Kill firstDescendant()! Created 7 years, 2 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/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 1fe0467f9e3dfae905f5854fa1b554ba67bbd627..44ee6c7d3ec37187e2de39f1588e487deb545d2f 100644
--- a/Source/core/dom/Node.h
+++ b/Source/core/dom/Node.h
@@ -216,8 +216,7 @@ public:
String textContent(bool convertBRsToNewlines = false) const;
void setTextContent(const String&, ExceptionState&);
- Node* lastDescendant() const;
- Node* firstDescendant() const;
+ Node& lastDescendant() const;
// Other methods (not part of DOM)
« no previous file with comments | « no previous file | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698