Bug 1552608 - Make APZCTreeManager::GetTargetAPZC(layersId, scrollId) const. r=tnikkel

Differential Revision: https://phabricator.services.mozilla.com/D48377

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Botond Ballo 2019-10-07 21:54:54 +00:00
parent 7b097cc92f
commit 194efdc5a5
2 changed files with 4 additions and 2 deletions

View File

@ -2548,7 +2548,8 @@ static bool GuidComparatorIgnoringPresShell(const ScrollableLayerGuid& aOne,
}
already_AddRefed<AsyncPanZoomController> APZCTreeManager::GetTargetAPZC(
const LayersId& aLayersId, const ScrollableLayerGuid::ViewID& aScrollId) {
const LayersId& aLayersId,
const ScrollableLayerGuid::ViewID& aScrollId) const {
MutexAutoLock lock(mMapLock);
ScrollableLayerGuid guid(aLayersId, 0, aScrollId);
auto it = mApzcMap.find(guid);

View File

@ -566,7 +566,8 @@ class APZCTreeManager : public IAPZCTreeManager, public APZInputBridge {
LayersId* aOutLayersId,
HitTestingTreeNodeAutoLock* aOutScrollbarNode = nullptr);
already_AddRefed<AsyncPanZoomController> GetTargetAPZC(
const LayersId& aLayersId, const ScrollableLayerGuid::ViewID& aScrollId);
const LayersId& aLayersId,
const ScrollableLayerGuid::ViewID& aScrollId) const;
ScreenToParentLayerMatrix4x4 GetScreenToApzcTransform(
const AsyncPanZoomController* aApzc) const;
ParentLayerToScreenMatrix4x4 GetApzcToGeckoTransform(