Bug 593604. Re-add missing hunk of part 10. a=blocking
authorRobert O'Callahan <robert@ocallahan.org>
Mon, 03 Jan 2011 15:04:59 +1300
changeset 59783 c20f34eefa5dbe69a12d310b202b47761d6fcb58
parent 59782 836e01a2a6dc041d6d730f1fa3509284990816fd
child 59784 6a8cca708a48039ffcf110c3f32dbf7707b4aa23
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersblocking
bugs593604
milestone2.0b9pre
Bug 593604. Re-add missing hunk of part 10. a=blocking
gfx/layers/d3d9/ContainerLayerD3D9.cpp
--- a/gfx/layers/d3d9/ContainerLayerD3D9.cpp
+++ b/gfx/layers/d3d9/ContainerLayerD3D9.cpp
@@ -235,16 +235,18 @@ ContainerLayerD3D9::RenderLayer()
     device()->GetVertexShaderConstantF(CBmProjection, &oldViewMatrix[0][0], 4);
     device()->SetVertexShaderConstantF(CBmProjection, &viewMatrix._11, 4);
   } else {
 #ifdef DEBUG
     PRBool is2d =
 #endif
     GetEffectiveTransform().Is2D(&contTransform);
     NS_ASSERTION(is2d, "Transform must be 2D");
+    mSupportsComponentAlphaChildren = (GetContentFlags() & CONTENT_OPAQUE) ||
+        (mParent && mParent->SupportsComponentAlphaChildren());
   }
 
   /*
    * Render this container's contents.
    */
   for (LayerD3D9* layerToRender = GetFirstChildD3D9();
        layerToRender != nsnull;
        layerToRender = GetNextSiblingD3D9(layerToRender)) {