Bug 617863: Remove a pseudo-assertion that doesn't hold for plugin ImageLayers. r=roc a=a
authorChris Jones <jones.chris.g@gmail.com>
Tue, 04 Jan 2011 10:40:54 -0600
changeset 59846 d4084c318c9ee870bf6eb5b08f3a9f635034c404
parent 59845 d3e7baf00c962551a16b87c011d9d2781ecd5875
child 59847 1d1dfec6de0e519fd3be1df84856a62a14bdd68e
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersroc, a
bugs617863
milestone2.0b9pre
Bug 617863: Remove a pseudo-assertion that doesn't hold for plugin ImageLayers. r=roc a=a
gfx/layers/basic/BasicLayers.cpp
--- a/gfx/layers/basic/BasicLayers.cpp
+++ b/gfx/layers/basic/BasicLayers.cpp
@@ -1815,18 +1815,16 @@ BasicShadowableImageLayer::Paint(gfxCont
                                  void* aCallbackData)
 {
   gfxIntSize oldSize = mSize;
   nsRefPtr<gfxPattern> pat = GetAndPaintCurrentImage(aContext, GetEffectiveOpacity());
   if (!pat || !HasShadow())
     return;
 
   if (oldSize != mSize) {
-    NS_ASSERTION(oldSize == gfxIntSize(-1, -1), "video changed size?");
-
     if (mBackSurface) {
       BasicManager()->ShadowLayerForwarder::DestroySharedSurface(mBackSurface);
       mBackSurface = nsnull;
 
       BasicManager()->DestroyedImageBuffer(BasicManager()->Hold(this));
     }
 
     nsRefPtr<gfxSharedImageSurface> tmpFrontSurface;