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

Unified Diff: third_party/WebKit/Source/core/html/PluginDocument.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/PluginDocument.cpp
diff --git a/third_party/WebKit/Source/core/html/PluginDocument.cpp b/third_party/WebKit/Source/core/html/PluginDocument.cpp
index 3ad71eab3de3bd7d47b00ad19cb2c5120718e966..68d525a388b2d652aa753f2bea704e438d2ff9d2 100644
--- a/third_party/WebKit/Source/core/html/PluginDocument.cpp
+++ b/third_party/WebKit/Source/core/html/PluginDocument.cpp
@@ -91,10 +91,8 @@ void PluginDocumentParser::createDocumentStructure()
return;
HTMLHtmlElement* rootElement = HTMLHtmlElement::create(*document());
- rootElement->insertedByParser();
document()->appendChild(rootElement);
- frame->loader().dispatchDocumentElementAvailable();
- frame->loader().runScriptsAtDocumentElementAvailable();
+ rootElement->insertedByParser();
if (isStopped())
return; // runScriptsAtDocumentElementAvailable can detach the frame.

Powered by Google App Engine
This is Rietveld 408576698