Bug 617813: Remove a pseudo-assertion about a state that seems allowable. r=roc a=a
authorChris Jones <jones.chris.g@gmail.com>
Tue, 04 Jan 2011 10:40:54 -0600
changeset 59844 94d5e1a68f55b8d698677a6b86c7eb816a6dbc8a
parent 59843 53958cd8b5284d887f71b459dc024d25407ae5bf
child 59845 d3e7baf00c962551a16b87c011d9d2781ecd5875
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersroc, a
bugs617813
milestone2.0b9pre
Bug 617813: Remove a pseudo-assertion about a state that seems allowable. r=roc a=a
widget/src/xpwidgets/PuppetWidget.cpp
--- a/widget/src/xpwidgets/PuppetWidget.cpp
+++ b/widget/src/xpwidgets/PuppetWidget.cpp
@@ -178,19 +178,16 @@ PuppetWidget::Show(PRBool aState)
   return NS_OK;
 }
 
 NS_IMETHODIMP
 PuppetWidget::Resize(PRInt32 aWidth,
                      PRInt32 aHeight,
                      PRBool  aRepaint)
 {
-  NS_ASSERTION(mEnabled && mVisible,
-               "does it make sense to Resize() a disabled or hidden widget?");
-
   nsIntRect oldBounds = mBounds;
   mBounds.SizeTo(nsIntSize(aWidth, aHeight));
 
   if (mChild) {
     return mChild->Resize(aWidth, aHeight, aRepaint);
   }
 
   // XXX: roc says that |aRepaint| dictates whether or not to