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
Родитель 7b097cc92f
Коммит 194efdc5a5
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

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

Просмотреть файл

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