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

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

Issue 2432173005: Get rid of VisibleSelection::selectionFromContentsOfNode() (Closed)
Patch Set: 2016-10-20T13:46:03 Created 4 years, 2 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/SelectionTemplate.cpp
diff --git a/third_party/WebKit/Source/core/editing/SelectionTemplate.cpp b/third_party/WebKit/Source/core/editing/SelectionTemplate.cpp
index 5dd8434137029d54dd351760a1e9d551959e2c45..03f925a63434839ef99485a07de0f35cc38f3d87 100644
--- a/third_party/WebKit/Source/core/editing/SelectionTemplate.cpp
+++ b/third_party/WebKit/Source/core/editing/SelectionTemplate.cpp
@@ -185,6 +185,13 @@ SelectionTemplate<Strategy>::Builder::extend(
template <typename Strategy>
typename SelectionTemplate<Strategy>::Builder&
+SelectionTemplate<Strategy>::Builder::selectAllChildren(const Node& node) {
+ return setBaseAndExtent(
+ EphemeralRangeTemplate<Strategy>::rangeOfContents(node));
+}
+
+template <typename Strategy>
+typename SelectionTemplate<Strategy>::Builder&
SelectionTemplate<Strategy>::Builder::setAffinity(TextAffinity affinity) {
m_selection.m_affinity = affinity;
return *this;

Powered by Google App Engine
This is Rietveld 408576698