Bug 1213120 - Ensure we don't try to use an uninitialized map. r=BenWa

--HG--
extra : commitid : KBCIVOZsVmU
This commit is contained in:
Kartikaya Gupta 2015-11-03 11:12:46 -05:00
parent 6606e57d29
commit 6f1fa89293

View File

@ -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;