зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1213120 - Ensure we don't try to use an uninitialized map. r=BenWa
--HG-- extra : commitid : KBCIVOZsVmU
This commit is contained in:
Родитель
6606e57d29
Коммит
6f1fa89293
|
@ -1650,6 +1650,7 @@ CompositorParent::SetControllerForLayerTree(uint64_t aLayersId,
|
|||
/*static*/ APZCTreeManager*
|
||||
CompositorParent::GetAPZCTreeManager(uint64_t aLayersId)
|
||||
{
|
||||
EnsureLayerTreeMapReady();
|
||||
const CompositorParent::LayerTreeState* state = CompositorParent::GetIndirectShadowTree(aLayersId);
|
||||
if (state && state->mParent) {
|
||||
return state->mParent->mApzcTreeManager;
|
||||
|
|
Загрузка…
Ссылка в новой задаче