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

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

Issue 1378463004: Another attempt at fixing Win-Clang link error (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | 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 109294498314a2df5b566899d0e337fb109cf175..44601a675f1c37d881cb80241a54c7a993f2e072 100644
--- a/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
@@ -1266,13 +1266,19 @@ bool VisibleSelectionTemplate<EditingStrategy>::expandUsingGranularity(TextGranu
}
template <> CORE_TEMPLATE_EXPORT
-VisibleSelectionTemplate<EditingInComposedTreeStrategy>::VisibleSelectionTemplate()
+VisibleSelectionTemplate<EditingInComposedTreeStrategy>::VisibleSelectionTemplate(const VisibleSelection& visibleSelection)
+ : m_visibleSelection(visibleSelection)
{
}
template <> CORE_TEMPLATE_EXPORT
-VisibleSelectionTemplate<EditingInComposedTreeStrategy>::VisibleSelectionTemplate(const VisibleSelection& visibleSelection)
- : m_visibleSelection(visibleSelection)
+VisibleSelectionTemplate<EditingInComposedTreeStrategy>::VisibleSelectionTemplate(const VisiblePositionTemplate<EditingInComposedTreeStrategy>& visiblePosition)
+ : VisibleSelectionTemplate(VisibleSelection(visiblePosition.deepEquivalent(), visiblePosition.deepEquivalent(), visiblePosition.affinity()))
+{
+}
+
+template <> CORE_TEMPLATE_EXPORT
+VisibleSelectionTemplate<EditingInComposedTreeStrategy>::VisibleSelectionTemplate()
{
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698