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) |