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

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

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/editing/LayoutSelection.h
diff --git a/third_party/WebKit/Source/core/editing/LayoutSelection.h b/third_party/WebKit/Source/core/editing/LayoutSelection.h
index ac5b3c0f850950bb54c637deb4ae0a4dd71d3d52..b49f079a950aabb0b1e108ad526ad9326aa35f7f 100644
--- a/third_party/WebKit/Source/core/editing/LayoutSelection.h
+++ b/third_party/WebKit/Source/core/editing/LayoutSelection.h
@@ -55,7 +55,7 @@ class LayoutSelection final : public GarbageCollected<LayoutSelection> {
int end_pos,
SelectionPaintInvalidationMode = kPaintInvalidationNewXOROld);
void ClearSelection();
- void SelectionStartEnd(int& start_pos, int& end_pos);
+ std::pair<int, int> SelectionStartEnd();
void OnDocumentShutdown();
DECLARE_TRACE();
« no previous file with comments | « third_party/WebKit/Source/core/editing/FrameSelection.cpp ('k') | third_party/WebKit/Source/core/editing/LayoutSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698