Index: Source/core/editing/DOMSelection.cpp |
diff --git a/Source/core/editing/DOMSelection.cpp b/Source/core/editing/DOMSelection.cpp |
index d4eaa607884304371ecd154f480bf656ea4e36e6..b05ba0ffcd36d2cf05b771bf00a9503465c06d1b 100644 |
--- a/Source/core/editing/DOMSelection.cpp |
+++ b/Source/core/editing/DOMSelection.cpp |
@@ -505,7 +505,10 @@ String DOMSelection::toString() |
if (!m_frame) |
return String(); |
- return plainText(m_frame->selection().selection().toNormalizedRange().get()); |
+ Position start, end; |
+ if (m_frame->selection().selection().toNormalizedPositions(start, end)) |
+ return plainText(start, end); |
+ return emptyString(); |
} |
Node* DOMSelection::shadowAdjustedNode(const Position& position) const |