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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.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/layout/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index 57050627de17fafbb5179957e1627db37958916b..eb18e100ebbb8858b567e9d45ff375d33fa6f6d0 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -1453,9 +1453,9 @@ Color LayoutObject::SelectionEmphasisMarkColor(
return SelectionColor(CSSPropertyWebkitTextEmphasisColor, global_paint_flags);
}
-void LayoutObject::SelectionStartEnd(int& start_pos, int& end_pos) const {
+std::pair<int, int> LayoutObject::SelectionStartEnd() const {
DCHECK(!View()->NeedsLayout());
- GetFrame()->Selection().LayoutSelectionStartEnd(start_pos, end_pos);
+ return GetFrame()->Selection().LayoutSelectionStartEnd();
}
// Called when an object that was floating or positioned becomes a normal flow
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | third_party/WebKit/Source/core/layout/LayoutText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698