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

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

Issue 1371003002: Utilize VisibleSelectionTemplate template class in SelectionController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2015-09-28T14:31:05 Created 5 years, 3 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
« no previous file with comments | « third_party/WebKit/Source/core/editing/VisibleSelection.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/VisibleSelection.cpp
diff --git a/third_party/WebKit/Source/core/editing/VisibleSelection.cpp b/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
index 584a80da3362654d18f60cfb9905a63afc5c6cc2..7dd3b71c942b324aa14443729d6668b1d97c4aca 100644
--- a/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
@@ -1203,6 +1203,18 @@ void VisibleSelectionTemplate<Strategy>::setWithoutValidation(const PositionAlgo
m_visibleSelection.setWithoutValidation(base, extent);
}
+template <typename Strategy>
+void VisibleSelectionTemplate<Strategy>::appendTrailingWhitespace()
+{
+ m_visibleSelection.appendTrailingWhitespace();
+}
+
+template <typename Strategy>
+VisibleSelectionTemplate<Strategy> VisibleSelectionTemplate<Strategy>::selectionFromContentsOfNode(Node* node)
+{
+ return VisibleSelectionTemplate<Strategy>(VisibleSelection::selectionFromContentsOfNode(node));
+}
+
template <>
bool VisibleSelectionTemplate<EditingStrategy>::operator==(const VisibleSelectionTemplate<EditingStrategy>& other) const
{
« no previous file with comments | « third_party/WebKit/Source/core/editing/VisibleSelection.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698