Title: [114414] trunk/Source/WebKit2
Revision
114414
Author
ander...@apple.com
Date
2012-04-17 12:24:33 -0700 (Tue, 17 Apr 2012)

Log Message

Make sure that the layer hosting mode is kept up to date if it changes before the plug-in is initialized
https://bugs.webkit.org/show_bug.cgi?id=84180
<rdar://problem/11265113>

Reviewed by Andreas Kling.

* WebProcess/Plugins/PluginView.cpp:
(WebKit::PluginView::setLayerHostingMode):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (114413 => 114414)


--- trunk/Source/WebKit2/ChangeLog	2012-04-17 19:23:35 UTC (rev 114413)
+++ trunk/Source/WebKit2/ChangeLog	2012-04-17 19:24:33 UTC (rev 114414)
@@ -1,3 +1,14 @@
+2012-04-17  Anders Carlsson  <ander...@apple.com>
+
+        Make sure that the layer hosting mode is kept up to date if it changes before the plug-in is initialized
+        https://bugs.webkit.org/show_bug.cgi?id=84180
+        <rdar://problem/11265113>
+
+        Reviewed by Andreas Kling.
+
+        * WebProcess/Plugins/PluginView.cpp:
+        (WebKit::PluginView::setLayerHostingMode):
+
 2012-04-17  Jer Noble  <jer.no...@apple.com>
 
         Exiting full screen video brings the wrong Safari window to the foreground

Modified: trunk/Source/WebKit2/WebProcess/Plugins/PluginView.cpp (114413 => 114414)


--- trunk/Source/WebKit2/WebProcess/Plugins/PluginView.cpp	2012-04-17 19:23:35 UTC (rev 114413)
+++ trunk/Source/WebKit2/WebProcess/Plugins/PluginView.cpp	2012-04-17 19:24:33 UTC (rev 114414)
@@ -436,9 +436,14 @@
 
 void PluginView::setLayerHostingMode(LayerHostingMode layerHostingMode)
 {
-    if (!m_isInitialized || !m_plugin)
+    if (!m_plugin)
         return;
 
+    if (!m_isInitialized) {
+        m_parameters.layerHostingMode = layerHostingMode;
+        return;
+    }
+
     m_plugin->setLayerHostingMode(layerHostingMode);
 }
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to