зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
855dbe76b2
Коммит
55c68da930
|
@ -6373,6 +6373,13 @@ nsDisplayPerspective::BuildLayer(nsDisplayListBuilder *aBuilder,
|
|||
perspectiveMatrix);
|
||||
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
|
||||
* frame. Append a translation to the reference frame coordinates.
|
||||
|
|
Загрузка…
Ссылка в новой задаче