Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 189f09e2622f96b38ed90d0ce34e5ecc5b927c68..ece8a2ac9a896f8e2eb1aa89f1f38b4d198fd404 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -485,6 +485,7 @@ Document::Document(const DocumentInit& initializer, DocumentClassFlags documentC |
, m_hasFullscreenElementStack(false) |
, m_loadEventDelayCount(0) |
, m_loadEventDelayTimer(this, &Document::loadEventDelayTimerFired) |
+ , m_pluginLoadingTimer(this, &Document::pluginLoadingTimerFired) |
, m_didSetReferrerPolicy(false) |
, m_referrerPolicy(ReferrerPolicyDefault) |
, m_directionSetOnDocumentElement(false) |
@@ -4917,6 +4918,18 @@ void Document::loadEventDelayTimerFired(Timer<Document>*) |
frame()->loader().checkCompleted(); |
} |
+void Document::loadPluginsSoon() |
+{ |
+ // FIXME: Remove this timer once we don't need to compute layout to load plugins. |
+ if (!m_pluginLoadingTimer.isActive()) |
+ m_pluginLoadingTimer.startOneShot(0); |
+} |
+ |
+void Document::pluginLoadingTimerFired(Timer<Document>*) |
+{ |
+ updateLayout(); |
+} |
+ |
ScriptedAnimationController& Document::ensureScriptedAnimationController() |
{ |
if (!m_scriptedAnimationController) { |