diff --git a/gfx/layers/opengl/ContainerLayerOGL.cpp b/gfx/layers/opengl/ContainerLayerOGL.cpp index 2d77443b77f1..0ceb0aeefa44 100644 --- a/gfx/layers/opengl/ContainerLayerOGL.cpp +++ b/gfx/layers/opengl/ContainerLayerOGL.cpp @@ -168,6 +168,8 @@ ContainerRender(Container* aContainer, nsIntPoint childOffset(aOffset); nsIntRect visibleRect = aContainer->GetEffectiveVisibleRegion().GetBounds(); + gfxMatrix worldTransform = aManager->GetWorldTransform(); + nsIntRect cachedScissor = aContainer->gl()->ScissorRect(); aContainer->gl()->PushScissorRect(); aContainer->mSupportsComponentAlphaChildren = PR_FALSE; @@ -235,7 +237,7 @@ ContainerRender(Container* aContainer, layerToRender->GetLayer()->CalculateScissorRect(needsFramebuffer, visibleRect, cachedScissor, - contTransform); + contTransform * worldTransform); if (scissorRect.IsEmpty()) { continue;