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

Unified Diff: third_party/WebKit/Source/core/editing/Position.h

Issue 2962473002: Make Position::LastPositionInNode() to take const Node& instead of Node* (Closed)
Patch Set: 2017-06-26T14:00:00 Created 3 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
Index: third_party/WebKit/Source/core/editing/Position.h
diff --git a/third_party/WebKit/Source/core/editing/Position.h b/third_party/WebKit/Source/core/editing/Position.h
index 572c83a4e7e9627fec1b0ec3540774e6dbe4c5de..325359f1c1fdda1ab131a4c807c59f78dfa23166 100644
--- a/third_party/WebKit/Source/core/editing/Position.h
+++ b/third_party/WebKit/Source/core/editing/Position.h
@@ -195,7 +195,7 @@ class CORE_TEMPLATE_CLASS_EXPORT PositionTemplate {
static int LastOffsetInNode(const Node& anchor_node);
static PositionTemplate<Strategy> FirstPositionInNode(
const Node& anchor_node);
- static PositionTemplate<Strategy> LastPositionInNode(Node* anchor_node);
+ static PositionTemplate<Strategy> LastPositionInNode(const Node& anchor_node);
static PositionTemplate<Strategy> FirstPositionInOrBeforeNode(
Node* anchor_node);
static PositionTemplate<Strategy> LastPositionInOrAfterNode(
« no previous file with comments | « third_party/WebKit/Source/core/editing/EphemeralRange.cpp ('k') | third_party/WebKit/Source/core/editing/Position.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698