Commit 791db722 authored by esprehn@chromium.org's avatar esprehn@chromium.org

Add a ScriptForbiddenScope to ContainerNode::insertBeforeCommon

Add one to complement the NoEventDispatchAssertion.

Review URL: https://codereview.chromium.org/308593002

git-svn-id: svn://svn.chromium.org/blink/trunk@175032 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 13b24faf
......@@ -250,6 +250,7 @@ void ContainerNode::insertBefore(PassRefPtr<Node> newChild, Node* refChild, Exce
void ContainerNode::insertBeforeCommon(Node& nextChild, Node& newChild)
{
NoEventDispatchAssertion assertNoEventDispatch;
ScriptForbiddenScope forbidScript;
ASSERT(!newChild.parentNode()); // Use insertBefore if you need to handle reparenting (and want DOM mutation events).
ASSERT(!newChild.nextSibling());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment