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

Side by Side 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, 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 V0CustomElementMicrotaskRunQueue; 86 class V0CustomElementMicrotaskRunQueue;
86 class V0CustomElementRegistrationContext; 87 class V0CustomElementRegistrationContext;
87 class DOMImplementation; 88 class DOMImplementation;
88 class DOMWindow; 89 class DOMWindow;
89 class DocumentFragment; 90 class DocumentFragment;
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 634
634 void attachRange(Range*); 635 void attachRange(Range*);
635 void detachRange(Range*); 636 void detachRange(Range*);
636 637
637 void updateRangesAfterChildrenChanged(ContainerNode*); 638 void updateRangesAfterChildrenChanged(ContainerNode*);
638 void updateRangesAfterNodeMovedToAnotherDocument(const Node&); 639 void updateRangesAfterNodeMovedToAnotherDocument(const Node&);
639 // nodeChildrenWillBeRemoved is used when removing all node children at once . 640 // nodeChildrenWillBeRemoved is used when removing all node children at once .
640 void nodeChildrenWillBeRemoved(ContainerNode&); 641 void nodeChildrenWillBeRemoved(ContainerNode&);
641 // nodeWillBeRemoved is only safe when removing one node at a time. 642 // nodeWillBeRemoved is only safe when removing one node at a time.
642 void nodeWillBeRemoved(Node&); 643 void nodeWillBeRemoved(Node&);
644 // Called just before a destructive update to some CharacterData.
645 void dataWillChange(const CharacterData&);
643 bool canAcceptChild(const Node& newChild, const Node* oldChild, ExceptionSta te&) const; 646 bool canAcceptChild(const Node& newChild, const Node* oldChild, ExceptionSta te&) const;
644 647
645 void didInsertText(Node*, unsigned offset, unsigned length); 648 void didInsertText(Node*, unsigned offset, unsigned length);
646 void didRemoveText(Node*, unsigned offset, unsigned length); 649 void didRemoveText(Node*, unsigned offset, unsigned length);
647 void didMergeTextNodes(Text& oldNode, unsigned offset); 650 void didMergeTextNodes(Text& oldNode, unsigned offset);
648 void didSplitTextNode(Text& oldNode); 651 void didSplitTextNode(Text& oldNode);
649 652
650 void clearDOMWindow() { m_domWindow = nullptr; } 653 void clearDOMWindow() { m_domWindow = nullptr; }
651 LocalDOMWindow* domWindow() const { return m_domWindow; } 654 LocalDOMWindow* domWindow() const { return m_domWindow; }
652 655
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
1433 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1436 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1434 1437
1435 } // namespace blink 1438 } // namespace blink
1436 1439
1437 #ifndef NDEBUG 1440 #ifndef NDEBUG
1438 // Outside the WebCore namespace for ease of invocation from gdb. 1441 // Outside the WebCore namespace for ease of invocation from gdb.
1439 CORE_EXPORT void showLiveDocumentInstances(); 1442 CORE_EXPORT void showLiveDocumentInstances();
1440 #endif 1443 #endif
1441 1444
1442 #endif // Document_h 1445 #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