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

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

Issue 304003002: Don't mutate the DOM from inside an Element's constructor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix includes Created 6 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
« no previous file with comments | « no previous file | Source/core/html/HTMLAudioElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ContainerNode.cpp
diff --git a/Source/core/dom/ContainerNode.cpp b/Source/core/dom/ContainerNode.cpp
index 2505987c1717cc407bd1e1d5b070b9769f7c87af..1fc7c062329e46aa4feb42bd357caa83c64ace83 100644
--- a/Source/core/dom/ContainerNode.cpp
+++ b/Source/core/dom/ContainerNode.cpp
@@ -665,7 +665,7 @@ void ContainerNode::notifyNodeInserted(Node& root)
InspectorInstrumentation::didInsertDOMNode(&root);
- RefPtr<Node> protectDocument(root.document());
+ RefPtr<Node> protect(this);
RefPtr<Node> protectNode(root);
NodeVector postInsertionNotificationTargets;
« no previous file with comments | « no previous file | Source/core/html/HTMLAudioElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698