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

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

Issue 2692093003: Rewrite DocumentMarkerController to use SynchronousMutationObserver (Closed)
Patch Set: Respond to comments, add TODO for offset bug Created 3 years, 10 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 39cc41ea019a37bff37e21b26bed993b5b627160..a4444faefae0201988277f9dba205a73fa06fb3a 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -4324,16 +4324,11 @@ void Document::nodeWillBeRemoved(Node& n) {
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);
}
void Document::didRemoveText(Node* text, unsigned offset, unsigned length) {
for (Range* range : m_ranges)
range->didRemoveText(text, offset, length);
-
- m_markers->removeMarkers(text, offset, length);
- m_markers->shiftMarkers(text, offset + length, 0 - length);
}
void Document::didMergeTextNodes(const Text& mergedNode,

Powered by Google App Engine
This is Rietveld 408576698