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

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

Issue 2899613002: DOM: Fix an issue of reversed MutationRecoards. (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/ContainerNode.h
diff --git a/third_party/WebKit/Source/core/dom/ContainerNode.h b/third_party/WebKit/Source/core/dom/ContainerNode.h
index 7fb310bf7dafd4f8d1e762bcac6f0d4070cba082..28a512a251514fe48eaf545c1279bf674d5be2f3 100644
--- a/third_party/WebKit/Source/core/dom/ContainerNode.h
+++ b/third_party/WebKit/Source/core/dom/ContainerNode.h
@@ -372,8 +372,18 @@ class CORE_EXPORT ContainerNode : public Node {
NodeListsNodeData& EnsureNodeLists();
void RemoveBetween(Node* previous_child, Node* next_child, Node& old_child);
+ // Inserts the specified nodes before |next|.
+ // |next| may be nullptr.
+ // |post_insertion_notification_targets| must not be nullptr.
template <typename Functor>
- void InsertNodeVector(const NodeVector&, Node* next, const Functor&);
+ void InsertNodeVector(const NodeVector&,
+ Node* next,
+ const Functor&,
+ NodeVector* post_insertion_notification_targets);
+ void DidInsertNodeVector(
+ const NodeVector&,
+ Node* next,
+ const NodeVector& post_insertion_notification_targets);
class AdoptAndInsertBefore;
class AdoptAndAppendChild;
friend class AdoptAndInsertBefore;

Powered by Google App Engine
This is Rietveld 408576698