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

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: insertedByParser after actual insertion point 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..9fd1a0b446158b3f8ce29890994172988ff792e1 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp
@@ -379,16 +379,6 @@ HTMLFormElement* HTMLConstructionSite::takeForm()
return m_form.release();
}
-void HTMLConstructionSite::dispatchDocumentElementAvailableIfNeeded()
-{
- ASSERT(m_document);
- if (m_document->frame() && !m_isParsingFragment) {
- m_document->frame()->loader().dispatchDocumentElementAvailable();
- m_document->frame()->loader().runScriptsAtDocumentElementAvailable();
- // runScriptsAtDocumentElementAvailable might have invalidated m_document.
- }
-}
-
void HTMLConstructionSite::insertHTMLHtmlStartTagBeforeHTML(AtomicHTMLToken* token)
{
ASSERT(m_document);
@@ -399,7 +389,6 @@ void HTMLConstructionSite::insertHTMLHtmlStartTagBeforeHTML(AtomicHTMLToken* tok
executeQueuedTasks();
element->insertedByParser();
- dispatchDocumentElementAvailableIfNeeded();
}
void HTMLConstructionSite::mergeAttributesFromTokenIntoElement(AtomicHTMLToken* token, Element* element)

Powered by Google App Engine
This is Rietveld 408576698