Index: third_party/WebKit/Source/core/editing/SelectionEditor.cpp |
diff --git a/third_party/WebKit/Source/core/editing/SelectionEditor.cpp b/third_party/WebKit/Source/core/editing/SelectionEditor.cpp |
index cbf5174bbe79a2e473cd2bfea18c64318f559894..a06bc771a81ae07c735ce3bf5af79e7c00e81880 100644 |
--- a/third_party/WebKit/Source/core/editing/SelectionEditor.cpp |
+++ b/third_party/WebKit/Source/core/editing/SelectionEditor.cpp |
@@ -368,7 +368,7 @@ void SelectionEditor::setLogicalRange(Range* range) { |
Range* SelectionEditor::firstRange() const { |
if (m_logicalRange) |
return m_logicalRange->cloneRange(); |
- return firstRangeOf(computeVisibleSelectionInDOMTree()); |
+ return createRange(firstEphemeralRangeOf(computeVisibleSelectionInDOMTree())); |
} |
bool SelectionEditor::shouldAlwaysUseDirectionalSelection() const { |