Bug 1425115 - Only add nsDisplayPerspective to mTransformFrame when retaining display list r=mattwoodrow

MozReview-Commit-ID: HKey0DG2r4c

--HG--
extra : rebase_source : 4e3087f2c12751ec129d558127556259b1b12f23
extra : source : 27e11cbb58f2549e3df59aea3f95306613ec6194
This commit is contained in:
Miko Mynttinen 2017-12-13 14:38:24 -06:00
parent d44db2f404
commit ea3073f5e3

View File

@ -9111,7 +9111,9 @@ nsDisplayPerspective::nsDisplayPerspective(nsDisplayListBuilder* aBuilder,
MOZ_ASSERT(mList.GetChildren()->Count() == 1);
MOZ_ASSERT(mList.GetChildren()->GetTop()->GetType() == DisplayItemType::TYPE_TRANSFORM);
mTransformFrame->AddDisplayItem(this);
if (aBuilder->IsRetainingDisplayList()) {
mTransformFrame->AddDisplayItem(this);
}
}
already_AddRefed<Layer>