Index: Source/core/editing/InsertTextCommand.cpp |
diff --git a/Source/core/editing/InsertTextCommand.cpp b/Source/core/editing/InsertTextCommand.cpp |
index 00ba6a7a4e4edb69ab7f1fd4f7d8d2e9ddfb2707..8a489403ed095da3d9dbf6fd7bfdae5ad725688b 100644 |
--- a/Source/core/editing/InsertTextCommand.cpp |
+++ b/Source/core/editing/InsertTextCommand.cpp |
@@ -174,7 +174,7 @@ void InsertTextCommand::doApply() |
// It is possible for the node that contains startPosition to contain only unrendered whitespace, |
// and so deleteInsignificantText could remove it. Save the position before the node in case that happens. |
Position positionBeforeStartNode(positionInParentBeforeNode(startPosition.containerNode())); |
- deleteInsignificantText(startPosition.upstream(), startPosition.downstream()); |
+ deleteInsignificantText(startPosition, startPosition.downstream()); |
yosin_UTC9
2013/11/18 05:42:39
I'm not sure why we can remove upstream()...
vanihegde
2013/11/18 05:47:33
It's already done above (line 172)
startPosition =
|
if (!startPosition.inDocument()) |
startPosition = positionBeforeStartNode; |
if (!startPosition.isCandidate()) |