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

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

Issue 2952983002: Make Position::FirstPositionInNode() to take const Node& instead of Node* (Closed)
Patch Set: 2017-06-23T10:37:43 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 11ed856bb9635eb10a620086bf7d73aa66e4a827..0e97aae3791ae9f564ca65b30bbc5b0b3cdf3fb2 100644
--- a/third_party/WebKit/Source/core/editing/Position.h
+++ b/third_party/WebKit/Source/core/editing/Position.h
@@ -193,7 +193,8 @@ class CORE_TEMPLATE_CLASS_EXPORT PositionTemplate {
static PositionTemplate<Strategy> InParentBeforeNode(const Node& anchor_node);
static PositionTemplate<Strategy> InParentAfterNode(const Node& anchor_node);
static int LastOffsetInNode(Node* anchor_node);
- static PositionTemplate<Strategy> FirstPositionInNode(Node* anchor_node);
+ static PositionTemplate<Strategy> FirstPositionInNode(
+ const Node& anchor_node);
static PositionTemplate<Strategy> LastPositionInNode(Node* anchor_node);
static PositionTemplate<Strategy> FirstPositionInOrBeforeNode(
Node* anchor_node);
« no previous file with comments | « third_party/WebKit/Source/core/editing/FrameSelection.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