Bug 1290505 - Remove E10S NPAPI plugin windows special case. r=jimm, a=sylvestre
authorBenoit Girard <b56girard@gmail.com>
Fri, 29 Jul 2016 16:39:50 -0400
changeset 342284 39ad687dbbae69ef71de90a827b6b35337c826a5
parent 342283 52ad6d77d5e4f18c0200217638da3fd4380f25e2
child 342285 971a19e5b78efd339687430321f42e1aa81b8062
push id1183
push userraliiev@mozilla.com
push dateMon, 05 Sep 2016 20:01:49 +0000
treeherdermozilla-release@3148731bed45 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjimm, sylvestre
bugs1290505
milestone49.0
Bug 1290505 - Remove E10S NPAPI plugin windows special case. r=jimm, a=sylvestre MozReview-Commit-ID: 7F7JeVmudjq
dom/plugins/base/nsPluginInstanceOwner.cpp
--- a/dom/plugins/base/nsPluginInstanceOwner.cpp
+++ b/dom/plugins/base/nsPluginInstanceOwner.cpp
@@ -3485,25 +3485,16 @@ void nsPluginInstanceOwner::FixUpPluginW
   // fix up the clipping region
   mPluginWindow->clipRect.top  = 0;
   mPluginWindow->clipRect.left = 0;
 
   if (inPaintState == ePluginPaintDisable) {
     mPluginWindow->clipRect.bottom = mPluginWindow->clipRect.top;
     mPluginWindow->clipRect.right  = mPluginWindow->clipRect.left;
   }
-  else if (!XRE_IsParentProcess())
-  {
-    // For e10s we only support async windowless plugin. This means that
-    // we're always going to allocate a full window for the plugin to draw
-    // for even if the plugin is mostly outside of the scroll port. Thus
-    // we never trim the window to the bounds of the widget.
-    mPluginWindow->clipRect.bottom = mPluginWindow->clipRect.top + mPluginWindow->height;
-    mPluginWindow->clipRect.right  = mPluginWindow->clipRect.left + mPluginWindow->width;
-  }
   else if (inPaintState == ePluginPaintEnable)
   {
     mPluginWindow->clipRect.bottom = mPluginWindow->clipRect.top + widgetClip.height;
     mPluginWindow->clipRect.right  = mPluginWindow->clipRect.left + widgetClip.width;
   }
 
   // if the clip rect changed, call SetWindow()
   // (RealPlayer needs this to draw correctly)