mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 12:15:33 +00:00
Bug 1213120 - Ensure we don't try to use an uninitialized map. r=BenWa
--HG-- extra : commitid : KBCIVOZsVmU
This commit is contained in:
parent
6606e57d29
commit
6f1fa89293
@ -1650,6 +1650,7 @@ CompositorParent::SetControllerForLayerTree(uint64_t aLayersId,
|
|||||||
/*static*/ APZCTreeManager*
|
/*static*/ APZCTreeManager*
|
||||||
CompositorParent::GetAPZCTreeManager(uint64_t aLayersId)
|
CompositorParent::GetAPZCTreeManager(uint64_t aLayersId)
|
||||||
{
|
{
|
||||||
|
EnsureLayerTreeMapReady();
|
||||||
const CompositorParent::LayerTreeState* state = CompositorParent::GetIndirectShadowTree(aLayersId);
|
const CompositorParent::LayerTreeState* state = CompositorParent::GetIndirectShadowTree(aLayersId);
|
||||||
if (state && state->mParent) {
|
if (state && state->mParent) {
|
||||||
return state->mParent->mApzcTreeManager;
|
return state->mParent->mApzcTreeManager;
|
||||||
|
Loading…
Reference in New Issue
Block a user