Loading dom/ipc/BrowserChild.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -2851,6 +2851,11 @@ void BrowserChild::InitAPZState() { // multiple inheritance. PAPZCTreeManagerChild* baseProtocol = cbc->SendPAPZCTreeManagerConstructor(mLayersId); if (!baseProtocol) { MOZ_ASSERT(false, "Allocating a TreeManager should not fail with APZ enabled"); return; } APZCTreeManagerChild* derivedProtocol = static_cast<APZCTreeManagerChild*>(baseProtocol); Loading gfx/layers/ipc/ContentCompositorBridgeParent.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -81,9 +81,15 @@ ContentCompositorBridgeParent::AllocPAPZCTreeManagerParent( return new APZCTreeManagerParent(aLayersId, temp, tempUpdater); } // If we do not have APZ enabled, we should gracefully fail. if (!state.mParent->GetOptions().UseAPZ()) { return nullptr; } state.mParent->AllocateAPZCTreeManagerParent(lock, aLayersId, state); return state.mApzcTreeManagerParent; } bool ContentCompositorBridgeParent::DeallocPAPZCTreeManagerParent( PAPZCTreeManagerParent* aActor) { APZCTreeManagerParent* parent = static_cast<APZCTreeManagerParent*>(aActor); Loading Loading
dom/ipc/BrowserChild.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -2851,6 +2851,11 @@ void BrowserChild::InitAPZState() { // multiple inheritance. PAPZCTreeManagerChild* baseProtocol = cbc->SendPAPZCTreeManagerConstructor(mLayersId); if (!baseProtocol) { MOZ_ASSERT(false, "Allocating a TreeManager should not fail with APZ enabled"); return; } APZCTreeManagerChild* derivedProtocol = static_cast<APZCTreeManagerChild*>(baseProtocol); Loading
gfx/layers/ipc/ContentCompositorBridgeParent.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -81,9 +81,15 @@ ContentCompositorBridgeParent::AllocPAPZCTreeManagerParent( return new APZCTreeManagerParent(aLayersId, temp, tempUpdater); } // If we do not have APZ enabled, we should gracefully fail. if (!state.mParent->GetOptions().UseAPZ()) { return nullptr; } state.mParent->AllocateAPZCTreeManagerParent(lock, aLayersId, state); return state.mApzcTreeManagerParent; } bool ContentCompositorBridgeParent::DeallocPAPZCTreeManagerParent( PAPZCTreeManagerParent* aActor) { APZCTreeManagerParent* parent = static_cast<APZCTreeManagerParent*>(aActor); Loading