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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.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/layout/LayoutObject.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.h b/third_party/WebKit/Source/core/layout/LayoutObject.h
index 683424a848048440e1f52be02f05b514a753378a..87dd906004d02246c8c198662d568ae9cb36be74 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h
@@ -1544,7 +1544,7 @@ class CORE_EXPORT LayoutObject : public ImageResourceObserver,
// to get notified of any image change.
virtual void ImageChanged(WrappedImagePtr, const IntRect* = nullptr) {}
- void SelectionStartEnd(int& spos, int& epos) const;
+ std::pair<int, int> SelectionStartEnd() const;
void Remove() {
if (Parent())
« no previous file with comments | « third_party/WebKit/Source/core/editing/LayoutSelection.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698