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

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

Issue 1931513003: Invalidate the previous caret location when editing text nodes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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.h
diff --git a/third_party/WebKit/Source/core/dom/Document.h b/third_party/WebKit/Source/core/dom/Document.h
index 038fd039a52a1a3834373c070a3c1244185f82c6..63ac5e2742aa541ca06416aeea33c2b8fe01e062 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -77,6 +77,7 @@ class CancellableTaskFactory;
class CanvasFontCache;
class CanvasRenderingContext2D;
class CanvasRenderingContext2DOrWebGLRenderingContext;
+class CharacterData;
class ChromeClient;
class CompositorPendingAnimations;
class Comment;
@@ -640,6 +641,8 @@ public:
void nodeChildrenWillBeRemoved(ContainerNode&);
// nodeWillBeRemoved is only safe when removing one node at a time.
void nodeWillBeRemoved(Node&);
+ // Called just before a destructive update to some CharacterData.
+ void dataWillChange(const CharacterData&);
bool canAcceptChild(const Node& newChild, const Node* oldChild, ExceptionState&) const;
void didInsertText(Node*, unsigned offset, unsigned length);

Powered by Google App Engine
This is Rietveld 408576698