Bug 1563622 - Check the ftdc flag when hit-testing with WR. r=botond

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Kartikaya Gupta 2019-07-19 16:30:25 +00:00
Родитель 917d84a405
Коммит a03a2dc866
1 изменённых файлов: 10 добавлений и 1 удалений

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

@ -2597,7 +2597,16 @@ already_AddRefed<AsyncPanZoomController> APZCTreeManager::GetAPZCAtPointWR(
if (aOutLayersId) {
*aOutLayersId = layersId;
}
result = GetTargetAPZC(layersId, scrollId);
ScrollableLayerGuid guid{layersId, 0, scrollId};
if (RefPtr<HitTestingTreeNode> node =
GetTargetNode(guid, &GuidComparatorIgnoringPresShell)) {
MOZ_ASSERT(node->GetApzc()); // any node returned must have an APZC
result = node->GetApzc();
EventRegionsOverride flags = node->GetEventRegionsOverride();
if (flags & EventRegionsOverride::ForceDispatchToContent) {
hitInfo += CompositorHitTestFlags::eApzAwareListeners;
}
}
if (!result) {
// It falls back to the root
MOZ_ASSERT(scrollId == ScrollableLayerGuid::NULL_SCROLL_ID);