Bug 1105295 - Stop using scrollinfo layers when event regions are enabled. r=botond

This commit is contained in:
Kartikaya Gupta 2014-11-26 12:40:55 -05:00
parent 1be59bd1ec
commit 9ad226a883

View File

@ -246,6 +246,9 @@ APZCTreeManager::PrepareAPZCForLayer(const LayerMetricsWrapper& aLayer,
if (!aMetrics.IsScrollable()) {
return nullptr;
}
if (gfxPrefs::LayoutEventRegionsEnabled() && aLayer.IsScrollInfoLayer()) {
return nullptr;
}
const CompositorParent::LayerTreeState* state = CompositorParent::GetIndirectShadowTree(aLayersId);
if (!(state && state->mController.get())) {