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

Unified Diff: trunk/Source/core/html/parser/HTMLConstructionSite.cpp

Issue 1096553003: Revert 191807 "Supress script during parser adjusting DOM node l..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 5 years, 8 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 | « trunk/LayoutTests/fast/dom/parser-adjust-parent-crash-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/Source/core/html/parser/HTMLConstructionSite.cpp
===================================================================
--- trunk/Source/core/html/parser/HTMLConstructionSite.cpp (revision 193900)
+++ trunk/Source/core/html/parser/HTMLConstructionSite.cpp (working copy)
@@ -50,7 +50,6 @@
#include "core/loader/FrameLoaderClient.h"
#include "core/svg/SVGScriptElement.h"
#include "platform/NotImplemented.h"
-#include "platform/ScriptForbiddenScope.h"
#include "platform/text/TextBreakIterator.h"
#include <limits>
@@ -103,10 +102,8 @@
if (isHTMLTemplateElement(*task.parent))
task.parent = toHTMLTemplateElement(task.parent.get())->content();
- if (ContainerNode* parent = task.child->parentNode()) {
- ScriptForbiddenScope forbidScript;
+ if (ContainerNode* parent = task.child->parentNode())
parent->parserRemoveChild(*task.child);
- }
if (task.nextChild)
task.parent->parserInsertBefore(task.child.get(), *task.nextChild);
@@ -153,10 +150,8 @@
{
ASSERT(task.operation == HTMLConstructionSiteTask::Reparent);
- if (ContainerNode* parent = task.child->parentNode()) {
- ScriptForbiddenScope forbidScript;
+ if (ContainerNode* parent = task.child->parentNode())
parent->parserRemoveChild(*task.child);
- }
task.parent->parserAppendChild(task.child);
}
« no previous file with comments | « trunk/LayoutTests/fast/dom/parser-adjust-parent-crash-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698