Index: third_party/WebKit/Source/core/dom/Document.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp |
index 230d3c9b6189a61b6fb0ae4ca0392faef892eaef..18c80facf3ef71cd43ba3ecb81cfda9b9856f7e2 100644 |
--- a/third_party/WebKit/Source/core/dom/Document.cpp |
+++ b/third_party/WebKit/Source/core/dom/Document.cpp |
@@ -4256,7 +4256,7 @@ void Document::didInsertText(Node* text, unsigned offset, unsigned length) { |
for (Range* range : m_ranges) |
range->didInsertText(text, offset, length); |
- m_markers->shiftMarkers(text, offset, length); |
+ m_markers->shiftMarkers(text, offset, 0, length); |
} |
void Document::didRemoveText(Node* text, unsigned offset, unsigned length) { |
@@ -4264,7 +4264,7 @@ void Document::didRemoveText(Node* text, unsigned offset, unsigned length) { |
range->didRemoveText(text, offset, length); |
m_markers->removeMarkers(text, offset, length); |
- m_markers->shiftMarkers(text, offset + length, 0 - length); |
+ m_markers->shiftMarkers(text, offset, length, 0); |
} |
void Document::didMergeTextNodes(const Text& mergedNode, |