Bug 1157327 follow-up to add a comment. r=me and DONTBUILD

This commit is contained in:
Kartikaya Gupta 2015-04-23 15:18:22 -04:00
parent 8ed2b0ac69
commit d2f94245ec

View File

@ -266,6 +266,8 @@ ContainerPrepare(ContainerT* aContainer,
RenderTargetIntRect clipRect = layerToRender->GetLayer()->
CalculateScissorRect(aClipRect);
// We don't want to skip container layers because otherwise their mPrepared
// may be null which is not allowed.
if (!layerToRender->GetLayer()->AsContainerLayer()) {
if (layerToRender->GetLayer()->GetEffectiveVisibleRegion().IsEmpty()) {
CULLING_LOG("Sublayer %p has no effective visible region\n", layerToRender->GetLayer());