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

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

Issue 2042413002: Notify the HTMLDocumentParser on document element available (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix some layout test flakiness Created 4 years, 6 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/html/parser/HTMLConstructionSite.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp b/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp
index 48def60177b066daa1ab382406affcc826fc7675..7b7592bb68e42a34f527be344a69796668d1ea16 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp
@@ -30,6 +30,7 @@
#include "core/HTMLNames.h"
#include "core/dom/Comment.h"
#include "core/dom/DocumentFragment.h"
+#include "core/dom/DocumentParser.h"
#include "core/dom/DocumentType.h"
#include "core/dom/Element.h"
#include "core/dom/ScriptLoader.h"
@@ -382,6 +383,7 @@ HTMLFormElement* HTMLConstructionSite::takeForm()
void HTMLConstructionSite::dispatchDocumentElementAvailableIfNeeded()
{
ASSERT(m_document);
+ m_document->parser()->documentElementAvailable();
kouhei (in TOK) 2016/06/08 05:09:11 I'm not a fan of cyclic-dependency introduced here
Charlie Harrison 2016/06/08 22:25:50 Yeah sure. I agree this is a non ideal architectur
if (m_document->frame() && !m_isParsingFragment) {
m_document->frame()->loader().dispatchDocumentElementAvailable();
m_document->frame()->loader().runScriptsAtDocumentElementAvailable();

Powered by Google App Engine
This is Rietveld 408576698