Bug 778029 - Fix distorted windowless flash with X11 GL layers. r=BenWa

This commit is contained in:
Marco Castelluccio 2012-09-01 11:35:56 -04:00
parent 8a97420e7f
commit 0c1bea5130
4 changed files with 19 additions and 5 deletions

View File

@ -25,3 +25,4 @@ random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) fails-if(!haveTestPlugin) =
random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) fails-if(!haveTestPlugin) == plugin-background-10-step.html plugin-background-ref.html
random-if(!haveTestPlugin) == plugin-transform-1.html plugin-transform-1-ref.html
fails-if(!haveTestPlugin) == plugin-transform-2.html plugin-transform-2-ref.html
fails-if(!haveTestPlugin) == windowless-layers.html windowless-layers-ref.html

View File

@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<body>
<embed type="application/x-test" style="width:200px; height:200px;">
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<body>
<div style="width:200px; height:200px; overflow:hidden; position:absolute; z-index:1">
<embed type="application/x-test" style="width:200px; height:200px;">
</div>
<div style="width:200px; height:100px; overflow:hidden; position:absolute; z-index:2">
<embed type="application/x-test" style="width:200px; height:200px;">
</div>
</body>
</html>

View File

@ -372,11 +372,7 @@ ImageLayerOGL::RenderLayer(int,
program->SetTextureUnit(0);
program->LoadMask(GetMaskLayer());
mOGLManager->BindAndDrawQuadWithTextureRect(program,
GetVisibleRegion().GetBounds(),
nsIntSize(cairoImage->GetSize().width,
cairoImage->GetSize().height));
mOGLManager->BindAndDrawQuad(program);
#if defined(MOZ_WIDGET_GTK2) && !defined(MOZ_PLATFORM_MAEMO)
if (cairoImage->mSurface && pixmap) {