Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1615)

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2650113004: [WIP] Add support for Android SuggestionSpans when editing text (Closed)
Patch Set: Remove logging statements, fix copyright years in new files Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 d0f32230eb9d19460f541d37edbe76016e63dfc1..851ba15ae61e39e753715f9acfea1f2cd6cec970 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -4254,7 +4254,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) {
@@ -4262,7 +4262,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,

Powered by Google App Engine
This is Rietveld 408576698