Skip to content

Commit

Permalink
[embedlite] Get IAPZCTreeManager from compositor parent. Fixes JB#49557
Browse files Browse the repository at this point in the history
  • Loading branch information
rainemak committed May 6, 2020
1 parent 5e26a05 commit b535d73
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions embedding/embedlite/embedshared/EmbedLiteViewBaseParent.cpp
Expand Up @@ -12,7 +12,6 @@
#include "EmbedLiteCompositorBridgeParent.h"
#include "mozilla/Unused.h"
#include "EmbedContentController.h"
#include "mozilla/layers/APZCTreeManager.h"
#include "mozilla/layers/APZThreadUtils.h"

#include <sys/syscall.h>
Expand Down Expand Up @@ -91,14 +90,10 @@ EmbedLiteViewBaseParent::UpdateScrollController()

mozilla::layers::IAPZCTreeManager *EmbedLiteViewBaseParent::GetApzcTreeManager()
{
#if 0
if (!mApzcTreeManager) {
mApzcTreeManager = CompositorBridgeParent::GetApzcTreeManagerParentForRoot(mRootLayerTreeId);
if (!mApzcTreeManager && mCompositor) {
mApzcTreeManager = mCompositor->GetAPZCTreeManager();
}
return mApzcTreeManager.get();
#else
return nullptr;
#endif
}

// Child notification
Expand Down

0 comments on commit b535d73

Please sign in to comment.