Bug 813722. Create layers for opacity:0 elements with animated opacity. r=mattwoodrow

--HG--
extra : rebase_source : 5dbcb7966983f040f340f661dd8a585dc92dae1e
This commit is contained in:
Robert O'Callahan 2012-11-23 14:09:24 +13:00
parent 94646e9056
commit 374246c82f

View File

@ -2715,7 +2715,8 @@ already_AddRefed<Layer>
nsDisplayOpacity::BuildLayer(nsDisplayListBuilder* aBuilder,
LayerManager* aManager,
const ContainerParameters& aContainerParameters) {
if (mFrame->GetStyleDisplay()->mOpacity == 0) {
if (mFrame->GetStyleDisplay()->mOpacity == 0 && mFrame->GetContent() &&
!nsLayoutUtils::HasAnimationsForCompositor(mFrame->GetContent(), eCSSProperty_opacity)) {
return nullptr;
}
nsRefPtr<Layer> container = aManager->GetLayerBuilder()->