зеркало из https://github.com/mozilla/gecko-dev.git
Ensure scroll info layers have a dispatch-to-content region. (bug 1193557 part 2, r=kats)
This commit is contained in:
Родитель
4c72778d2c
Коммит
6ef885ab51
|
@ -272,8 +272,11 @@ static EventRegions
|
|||
GetEventRegions(const LayerMetricsWrapper& aLayer)
|
||||
{
|
||||
if (aLayer.IsScrollInfoLayer()) {
|
||||
return EventRegions(nsIntRegion(ParentLayerIntRect::ToUntyped(
|
||||
RoundedToInt(aLayer.Metrics().GetCompositionBounds()))));
|
||||
ParentLayerIntRect compositionBounds(RoundedToInt(aLayer.Metrics().GetCompositionBounds()));
|
||||
nsIntRegion hitRegion(ParentLayerIntRect::ToUntyped(compositionBounds));
|
||||
EventRegions eventRegions(hitRegion);
|
||||
eventRegions.mDispatchToContentHitRegion = eventRegions.mHitRegion;
|
||||
return eventRegions;
|
||||
}
|
||||
return aLayer.GetEventRegions();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче