mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 778029 - Fix distorted windowless flash with X11 GL layers. r=BenWa
This commit is contained in:
parent
8a97420e7f
commit
0c1bea5130
@ -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
|
||||
|
6
dom/plugins/test/reftest/windowless-layers-ref.html
Normal file
6
dom/plugins/test/reftest/windowless-layers-ref.html
Normal file
@ -0,0 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<embed type="application/x-test" style="width:200px; height:200px;">
|
||||
</body>
|
||||
</html>
|
11
dom/plugins/test/reftest/windowless-layers.html
Normal file
11
dom/plugins/test/reftest/windowless-layers.html
Normal 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>
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user