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

Unified Diff: Source/WebCore/html/PluginDocument.cpp

Issue 6286151: Merge 77706 - 2011-02-04 Adam Barth <abarth@webkit.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 10 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
« no previous file with comments | « Source/WebCore/ChangeLog ('k') | Source/WebCore/page/FrameView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/html/PluginDocument.cpp
===================================================================
--- Source/WebCore/html/PluginDocument.cpp (revision 77831)
+++ Source/WebCore/html/PluginDocument.cpp (working copy)
@@ -28,6 +28,7 @@
#include "DocumentLoader.h"
#include "Frame.h"
#include "FrameLoaderClient.h"
+#include "FrameView.h"
#include "HTMLEmbedElement.h"
#include "HTMLHtmlElement.h"
#include "HTMLNames.h"
@@ -115,6 +116,13 @@
document()->updateLayout();
+ // Below we assume that renderer->widget() to have been created by
+ // document()->updateLayout(). However, in some cases, updateLayout() will
+ // recurse too many times and delay its post-layout tasks (such as creating
+ // the widget). Here we kick off the pending post-layout tasks so that we
+ // can synchronously redirect data to the plugin.
+ frame->view()->flushAnyPendingPostLayoutTasks();
+
if (RenderPart* renderer = m_embedElement->renderPart()) {
if (Widget* widget = renderer->widget()) {
frame->loader()->client()->redirectDataToPlugin(widget);
« no previous file with comments | « Source/WebCore/ChangeLog ('k') | Source/WebCore/page/FrameView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698