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

Unified Diff: third_party/WebKit/Source/core/page/TouchAdjustment.cpp

Issue 2833343002: Change SelectionStartEnd() returning values instead of assigning into ref args. (Closed)
Patch Set: rebase Created 3 years, 8 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/page/TouchAdjustment.cpp
diff --git a/third_party/WebKit/Source/core/page/TouchAdjustment.cpp b/third_party/WebKit/Source/core/page/TouchAdjustment.cpp
index ba1b7cc8ae7350fb63fef4dce64f2eeccb399525..0be208dda782dfc2478adcf87a214aa919c5d846 100644
--- a/third_party/WebKit/Source/core/page/TouchAdjustment.cpp
+++ b/third_party/WebKit/Source/core/page/TouchAdjustment.cpp
@@ -212,15 +212,15 @@ static inline void AppendContextSubtargetsForNode(
end_pos = text_layout_object->TextLength();
break;
case SelectionStart:
- text_layout_object->SelectionStartEnd(start_pos, end_pos);
+ std::tie(start_pos, end_pos) = text_layout_object->SelectionStartEnd();
end_pos = text_layout_object->TextLength();
break;
case SelectionEnd:
- text_layout_object->SelectionStartEnd(start_pos, end_pos);
+ std::tie(start_pos, end_pos) = text_layout_object->SelectionStartEnd();
start_pos = 0;
break;
case SelectionBoth:
- text_layout_object->SelectionStartEnd(start_pos, end_pos);
+ std::tie(start_pos, end_pos) = text_layout_object->SelectionStartEnd();
break;
default:
ASSERT_NOT_REACHED();
« no previous file with comments | « third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp ('k') | third_party/WebKit/Source/core/paint/PartPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698