mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1148871 - Only apply checkerboarding background color to opaque layers. r=botond
This commit is contained in:
parent
1d5aded55b
commit
a8d770c2ee
@ -344,7 +344,8 @@ RenderLayers(ContainerT* aContainer,
|
||||
Layer* layer = layerToRender->GetLayer();
|
||||
|
||||
gfxRGBA color;
|
||||
if (LayerHasCheckerboardingAPZC(layer, &color)) {
|
||||
if ((layer->GetContentFlags() & Layer::CONTENT_OPAQUE) &&
|
||||
LayerHasCheckerboardingAPZC(layer, &color)) {
|
||||
// Ideally we would want to intersect the checkerboard region from the APZ with the layer bounds
|
||||
// and only fill in that area. However the layer bounds takes into account the base translation
|
||||
// for the painted layer whereas the checkerboard region does not. One does not simply
|
||||
|
Loading…
Reference in New Issue
Block a user