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

Unified Diff: Source/core/dom/ContainerNode.h

Issue 688933002: Make textContent trigger single DOMSubtreeModified event (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address comments Created 6 years, 1 month 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
« no previous file with comments | « Source/core/dom/Attr.cpp ('k') | Source/core/dom/ContainerNode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ContainerNode.h
diff --git a/Source/core/dom/ContainerNode.h b/Source/core/dom/ContainerNode.h
index 117d1b95e0498edaea7a8f0d31bf6776ae5e5b13..52c67e84f844d49852c644fde1c122b7ffef64bf 100644
--- a/Source/core/dom/ContainerNode.h
+++ b/Source/core/dom/ContainerNode.h
@@ -54,6 +54,11 @@ enum DynamicRestyleFlags {
NumberOfDynamicRestyleFlags = 10,
};
+enum SubtreeModificationAction {
+ DispatchSubtreeModifiedEvent,
+ OmitSubtreeModifiedEvent
+};
+
// This constant controls how much buffer is initially allocated
// for a Node Vector that is used to store child Nodes of a given Node.
// FIXME: Optimize the value.
@@ -98,7 +103,7 @@ public:
void parserInsertBefore(PassRefPtrWillBeRawPtr<Node> newChild, Node& refChild);
void parserTakeAllChildrenFrom(ContainerNode&);
- void removeChildren();
+ void removeChildren(SubtreeModificationAction = DispatchSubtreeModifiedEvent);
void cloneChildNodes(ContainerNode* clone);
« no previous file with comments | « Source/core/dom/Attr.cpp ('k') | Source/core/dom/ContainerNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698