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() |
{ |
} |