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

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

Issue 1156273002: Add assert that updateLayoutTree clears dirty bits. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Check the accept conditions for documents. Created 5 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 | « Source/core/dom/shadow/ElementShadow.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/parser/HTMLConstructionSite.cpp
diff --git a/Source/core/html/parser/HTMLConstructionSite.cpp b/Source/core/html/parser/HTMLConstructionSite.cpp
index 9046c24ed248ed9fc30274a385c96dabd1dbab5b..3de5327d44aae5d5013fcec6dccd9da7b11558cb 100644
--- a/Source/core/html/parser/HTMLConstructionSite.cpp
+++ b/Source/core/html/parser/HTMLConstructionSite.cpp
@@ -102,6 +102,12 @@ static inline void insert(HTMLConstructionSiteTask& task)
if (isHTMLTemplateElement(*task.parent))
task.parent = toHTMLTemplateElement(task.parent.get())->content();
+ if (task.parent->isDocumentNode()) {
+ Document& document = toDocument(*task.parent);
+ if (!document.canAcceptChild(*task.child, nullptr, IGNORE_EXCEPTION))
+ return;
+ }
kouhei (in TOK) 2015/05/28 03:54:53 This change lg tm. Would you like to split this up
+
if (task.nextChild)
task.parent->parserInsertBefore(task.child.get(), *task.nextChild);
else
« no previous file with comments | « Source/core/dom/shadow/ElementShadow.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698