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

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

Issue 1190303002: Introduce Position::nodeAsRangeLastNode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: reviews Created 5 years, 6 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/core.gypi ('k') | Source/core/dom/Position.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Position.h
diff --git a/Source/core/dom/Position.h b/Source/core/dom/Position.h
index b13b35af0d046393617cff3398225377b6ed0591..ca1f734dffab0a6b3e3144f152ad15b49bce713b 100644
--- a/Source/core/dom/Position.h
+++ b/Source/core/dom/Position.h
@@ -141,6 +141,9 @@ public:
// |PositionIs::OffsetInAhcor| to behave as |Range| boundary point.
Node* nodeAsRangeFirstNode() const;
+ // Similar to |nodeAsRangeLastNode()|, but returns a node in a range.
+ Node* nodeAsRangeLastNode() const;
+
// Returns a node as past last as same as |Range::pastLastNode()|. This
// function is supposed to used in HTML serialization and plain text
// iterator. This position must be a |PositionIs::OffsetInAhcor| to
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/dom/Position.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698