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

Unified Diff: third_party/WebKit/Source/core/html/TextControlElement.cpp

Issue 2955823002: Make VisiblePosition::FirstPositionInNode() to take const Node& instead of Node* (Closed)
Patch Set: 2017-06-26T17:50:06 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/html/TextControlElement.cpp
diff --git a/third_party/WebKit/Source/core/html/TextControlElement.cpp b/third_party/WebKit/Source/core/html/TextControlElement.cpp
index d05dac2d0005878ceda446a2f871fca6c263b76d..284c4111e1a86db4b5cb763b6ed663795295f32e 100644
--- a/third_party/WebKit/Source/core/html/TextControlElement.cpp
+++ b/third_party/WebKit/Source/core/html/TextControlElement.cpp
@@ -459,7 +459,7 @@ bool TextControlElement::CacheSelection(unsigned start,
VisiblePosition TextControlElement::VisiblePositionForIndex(int index) const {
if (index <= 0)
- return VisiblePosition::FirstPositionInNode(InnerEditorElement());
+ return VisiblePosition::FirstPositionInNode(*InnerEditorElement());
Position start, end;
bool selected = Range::selectNodeContents(InnerEditorElement(), start, end);
if (!selected)

Powered by Google App Engine
This is Rietveld 408576698