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

Unified Diff: third_party/WebKit/Source/core/html/MediaDocument.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/MediaDocument.cpp
diff --git a/third_party/WebKit/Source/core/html/MediaDocument.cpp b/third_party/WebKit/Source/core/html/MediaDocument.cpp
index eec9b699e238c33de79d770fc4f1ffe5046d7e09..0fdef5333ded9d3d2f14be6fe09010aa37650198 100644
--- a/third_party/WebKit/Source/core/html/MediaDocument.cpp
+++ b/third_party/WebKit/Source/core/html/MediaDocument.cpp
@@ -126,11 +126,9 @@ void MediaDocumentParser::createDocumentStructure()
{
ASSERT(document());
HTMLHtmlElement* rootElement = HTMLHtmlElement::create(*document());
- rootElement->insertedByParser();
document()->appendChild(rootElement);
+ rootElement->insertedByParser();
- document()->frame()->loader().dispatchDocumentElementAvailable();
- document()->frame()->loader().runScriptsAtDocumentElementAvailable();
if (isDetached())
return; // runScriptsAtDocumentElementAvailable can detach the frame.
« no previous file with comments | « third_party/WebKit/Source/core/html/ImageDocument.cpp ('k') | third_party/WebKit/Source/core/html/PluginDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698