Bug 1238928 - Don't assume that our child list is unchanged in nsDisplayPerspective::BuildLayer. r=tnikkel

--HG--
extra : rebase_source : 1bbfa00636efed5733c6cdf918f1a0e982c1ac17
This commit is contained in:
Matt Woodrow 2016-04-01 14:37:15 +13:00
Родитель 855dbe76b2
Коммит 55c68da930
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -6373,6 +6373,13 @@ nsDisplayPerspective::BuildLayer(nsDisplayListBuilder *aBuilder,
perspectiveMatrix); perspectiveMatrix);
MOZ_ASSERT(hasPerspective, "Why did we create nsDisplayPerspective?"); MOZ_ASSERT(hasPerspective, "Why did we create nsDisplayPerspective?");
/*
* ClipListToRange can remove our child after we were created.
*/
if (!mList.GetChildren()->GetTop()) {
return nullptr;
}
/* /*
* The resulting matrix is still in the coordinate space of the transformed * The resulting matrix is still in the coordinate space of the transformed
* frame. Append a translation to the reference frame coordinates. * frame. Append a translation to the reference frame coordinates.