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

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

Issue 2958523002: Make Position::LastOffsetInNode() to take const Node& (Closed)
Patch Set: 2017-06-23T18:50:42 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
« no previous file with comments | « third_party/WebKit/Source/core/editing/iterators/SimplifiedBackwardsTextIterator.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 fd8032bd330b6dacb6b1c0384d60e939ae0bf98c..d05dac2d0005878ceda446a2f871fca6c263b76d 100644
--- a/third_party/WebKit/Source/core/html/TextControlElement.cpp
+++ b/third_party/WebKit/Source/core/html/TextControlElement.cpp
@@ -630,7 +630,7 @@ SelectionInDOMTree TextControlElement::Selection() const {
for (Node& node : NodeTraversal::DescendantsOf(*inner_text)) {
DCHECK(!node.hasChildren());
DCHECK(node.IsTextNode() || isHTMLBRElement(node));
- int length = node.IsTextNode() ? Position::LastOffsetInNode(&node) : 1;
+ int length = node.IsTextNode() ? Position::LastOffsetInNode(node) : 1;
if (offset <= start && start <= offset + length)
SetContainerAndOffsetForRange(&node, start - offset, start_node, start);
« no previous file with comments | « third_party/WebKit/Source/core/editing/iterators/SimplifiedBackwardsTextIterator.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698