Bug 777260 - Respect LAYER_ACTIVE_FORCE in ChildrenCanBeInactive. r=roc

ChildrenCanBeInactive returns false if any child items have active layer states,
but was only checking LAYER_ACTIVE and not LAYER_ACTIVE_FORCE.
This commit is contained in:
Chris Lord 2012-08-13 22:54:09 -04:00
parent 130e72dcf7
commit 669a81223c

View File

@ -2247,7 +2247,7 @@ bool nsDisplayWrapList::ChildrenCanBeInactive(nsDisplayListBuilder* aBuilder,
}
LayerState state = i->GetLayerState(aBuilder, aManager, aParameters);
if (state == LAYER_ACTIVE)
if (state == LAYER_ACTIVE || state == LAYER_ACTIVE_FORCE)
return false;
if (state == LAYER_NONE) {
nsDisplayList* list = i->GetList();