Bug 647554 - Uninitialized variable oldSize in nsPluginInstanceOwner::InvalidateRect; r=mats
authorMs2ger <ms2ger@gmail.com>
Thu, 07 Apr 2011 21:56:13 -0700
changeset 67647 2763b8586e8842a66162a8437b0969fc7ccac836
parent 67646 0243906e73713b90c581b68dc903111a3f3884f2
child 67648 7b80b863974c9c3ebb9073c8bbdbd94bb8e0ffa4
push id19407
push usereakhgari@mozilla.com
push dateFri, 08 Apr 2011 18:05:50 +0000
treeherdermozilla-central@1d17596bbf5f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmats
bugs647554
milestone2.2a1pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 647554 - Uninitialized variable oldSize in nsPluginInstanceOwner::InvalidateRect; r=mats
layout/generic/nsObjectFrame.cpp
--- a/layout/generic/nsObjectFrame.cpp
+++ b/layout/generic/nsObjectFrame.cpp
@@ -3498,17 +3498,17 @@ NS_IMETHODIMP nsPluginInstanceOwner::Inv
 
   if (!mObjectFrame || !invalidRect || !mWidgetVisible)
     return NS_ERROR_FAILURE;
 
   // Each time an asynchronously-drawing plugin sends a new surface to display,
   // InvalidateRect is called. We notify reftests that painting is up to
   // date and update our ImageContainer with the new surface.
   nsRefPtr<ImageContainer> container = mObjectFrame->GetImageContainer();
-  gfxIntSize oldSize;
+  gfxIntSize oldSize(0, 0);
   if (container) {
     oldSize = container->GetCurrentSize();
     SetCurrentImage(container);
   }
 
 #ifdef MOZ_USE_IMAGE_EXPOSE
   PRBool simpleImageRender = PR_FALSE;
   nsresult rv = mInstance->GetValueFromPlugin(NPPVpluginWindowlessLocalBool,