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

Unified Diff: third_party/WebKit/Source/core/editing/FrameSelection.cpp

Issue 1427733003: Use |FrameSelection::selectedText()| where possible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/FrameSelection.cpp
diff --git a/third_party/WebKit/Source/core/editing/FrameSelection.cpp b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
index b534ce9dccdd604efd5f71e12d2fde9851618b3c..aaec2ef61dbf5ff018c54dd2fa977709c8e16ce6 100644
--- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
@@ -1143,9 +1143,9 @@ String FrameSelection::selectedHTMLForClipboard() const
return extractSelectedHTMLAlgorithm<EditingInComposedTreeStrategy>(*this);
}
-String FrameSelection::selectedText() const
+String FrameSelection::selectedText(TextIteratorBehavior behavior) const
{
- return extractSelectedText(*this, TextIteratorDefaultBehavior);
+ return extractSelectedText(*this, behavior);
}
String FrameSelection::selectedTextForClipboard() const

Powered by Google App Engine
This is Rietveld 408576698