Bug 1148871 - Only apply checkerboarding background color to opaque layers. r=botond

This commit is contained in:
Markus Stange 2015-03-29 01:26:08 -04:00
parent 1d5aded55b
commit a8d770c2ee

View File

@ -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