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

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

Issue 2644063002: Make SynchronousMutationObserver::didMergeTextNodes() to take both merged and merging nodes (Closed)
Patch Set: 2017-01-19T17:22:18 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All
7 * rights reserved. 7 * rights reserved.
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 // nodeWillBeRemoved is only safe when removing one node at a time. 751 // nodeWillBeRemoved is only safe when removing one node at a time.
752 void nodeWillBeRemoved(Node&); 752 void nodeWillBeRemoved(Node&);
753 // Called just before a destructive update to some CharacterData. 753 // Called just before a destructive update to some CharacterData.
754 void dataWillChange(const CharacterData&); 754 void dataWillChange(const CharacterData&);
755 bool canAcceptChild(const Node& newChild, 755 bool canAcceptChild(const Node& newChild,
756 const Node* oldChild, 756 const Node* oldChild,
757 ExceptionState&) const; 757 ExceptionState&) const;
758 758
759 void didInsertText(Node*, unsigned offset, unsigned length); 759 void didInsertText(Node*, unsigned offset, unsigned length);
760 void didRemoveText(Node*, unsigned offset, unsigned length); 760 void didRemoveText(Node*, unsigned offset, unsigned length);
761 void didMergeTextNodes(Text& oldNode, unsigned offset); 761 void didMergeTextNodes(const Text& mergedNode,
762 const Text& nodeToBeRemoved,
763 unsigned oldLength);
762 void didSplitTextNode(const Text& oldNode); 764 void didSplitTextNode(const Text& oldNode);
763 765
764 void clearDOMWindow() { m_domWindow = nullptr; } 766 void clearDOMWindow() { m_domWindow = nullptr; }
765 LocalDOMWindow* domWindow() const { return m_domWindow; } 767 LocalDOMWindow* domWindow() const { return m_domWindow; }
766 768
767 // Helper functions for forwarding LocalDOMWindow event related tasks to the 769 // Helper functions for forwarding LocalDOMWindow event related tasks to the
768 // LocalDOMWindow if it exists. 770 // LocalDOMWindow if it exists.
769 void setWindowAttributeEventListener(const AtomicString& eventType, 771 void setWindowAttributeEventListener(const AtomicString& eventType,
770 EventListener*); 772 EventListener*);
771 EventListener* getWindowAttributeEventListener(const AtomicString& eventType); 773 EventListener* getWindowAttributeEventListener(const AtomicString& eventType);
(...skipping 951 matching lines...) Expand 10 before | Expand all | Expand 10 after
1723 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1725 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1724 1726
1725 } // namespace blink 1727 } // namespace blink
1726 1728
1727 #ifndef NDEBUG 1729 #ifndef NDEBUG
1728 // Outside the WebCore namespace for ease of invocation from gdb. 1730 // Outside the WebCore namespace for ease of invocation from gdb.
1729 CORE_EXPORT void showLiveDocumentInstances(); 1731 CORE_EXPORT void showLiveDocumentInstances();
1730 #endif 1732 #endif
1731 1733
1732 #endif // Document_h 1734 #endif // Document_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698