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

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 1950473002: Invalidate the previous caret location when editing text nodes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 class AnimationTimeline; 70 class AnimationTimeline;
71 class AXObjectCache; 71 class AXObjectCache;
72 class Attr; 72 class Attr;
73 class CDATASection; 73 class CDATASection;
74 class CSSStyleDeclaration; 74 class CSSStyleDeclaration;
75 class CSSStyleSheet; 75 class CSSStyleSheet;
76 class CancellableTaskFactory; 76 class CancellableTaskFactory;
77 class CanvasFontCache; 77 class CanvasFontCache;
78 class CanvasRenderingContext2D; 78 class CanvasRenderingContext2D;
79 class CanvasRenderingContext2DOrWebGLRenderingContext; 79 class CanvasRenderingContext2DOrWebGLRenderingContext;
80 class CharacterData;
80 class ChromeClient; 81 class ChromeClient;
81 class CompositorPendingAnimations; 82 class CompositorPendingAnimations;
82 class Comment; 83 class Comment;
83 class ConsoleMessage; 84 class ConsoleMessage;
84 class ContextFeatures; 85 class ContextFeatures;
85 class CustomElementMicrotaskRunQueue; 86 class CustomElementMicrotaskRunQueue;
86 class CustomElementRegistrationContext; 87 class CustomElementRegistrationContext;
87 class DOMImplementation; 88 class DOMImplementation;
88 class DOMWindow; 89 class DOMWindow;
89 class DocumentFragment; 90 class DocumentFragment;
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 632
632 void attachRange(Range*); 633 void attachRange(Range*);
633 void detachRange(Range*); 634 void detachRange(Range*);
634 635
635 void updateRangesAfterChildrenChanged(ContainerNode*); 636 void updateRangesAfterChildrenChanged(ContainerNode*);
636 void updateRangesAfterNodeMovedToAnotherDocument(const Node&); 637 void updateRangesAfterNodeMovedToAnotherDocument(const Node&);
637 // nodeChildrenWillBeRemoved is used when removing all node children at once . 638 // nodeChildrenWillBeRemoved is used when removing all node children at once .
638 void nodeChildrenWillBeRemoved(ContainerNode&); 639 void nodeChildrenWillBeRemoved(ContainerNode&);
639 // nodeWillBeRemoved is only safe when removing one node at a time. 640 // nodeWillBeRemoved is only safe when removing one node at a time.
640 void nodeWillBeRemoved(Node&); 641 void nodeWillBeRemoved(Node&);
642 // Called just before a destructive update to some CharacterData.
643 void dataWillChange(const CharacterData&);
641 bool canAcceptChild(const Node& newChild, const Node* oldChild, ExceptionSta te&) const; 644 bool canAcceptChild(const Node& newChild, const Node* oldChild, ExceptionSta te&) const;
642 645
643 void didInsertText(Node*, unsigned offset, unsigned length); 646 void didInsertText(Node*, unsigned offset, unsigned length);
644 void didRemoveText(Node*, unsigned offset, unsigned length); 647 void didRemoveText(Node*, unsigned offset, unsigned length);
645 void didMergeTextNodes(Text& oldNode, unsigned offset); 648 void didMergeTextNodes(Text& oldNode, unsigned offset);
646 void didSplitTextNode(Text& oldNode); 649 void didSplitTextNode(Text& oldNode);
647 650
648 void clearDOMWindow() { m_domWindow = nullptr; } 651 void clearDOMWindow() { m_domWindow = nullptr; }
649 LocalDOMWindow* domWindow() const { return m_domWindow; } 652 LocalDOMWindow* domWindow() const { return m_domWindow; }
650 653
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after
1437 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1440 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1438 1441
1439 } // namespace blink 1442 } // namespace blink
1440 1443
1441 #ifndef NDEBUG 1444 #ifndef NDEBUG
1442 // Outside the WebCore namespace for ease of invocation from gdb. 1445 // Outside the WebCore namespace for ease of invocation from gdb.
1443 CORE_EXPORT void showLiveDocumentInstances(); 1446 CORE_EXPORT void showLiveDocumentInstances();
1444 #endif 1447 #endif
1445 1448
1446 #endif // Document_h 1449 #endif // Document_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/CharacterData.cpp ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698