From a138ec92792b5533a82976fc35c4b3e56287439d Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 4 Sep 2015 17:44:23 -0700 Subject: [PATCH] Backout changeset b5e6116756b6 (wrong bug number). --- gfx/layers/apz/src/APZCTreeManager.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gfx/layers/apz/src/APZCTreeManager.cpp b/gfx/layers/apz/src/APZCTreeManager.cpp index 008fc51c971..100548e7e5e 100644 --- a/gfx/layers/apz/src/APZCTreeManager.cpp +++ b/gfx/layers/apz/src/APZCTreeManager.cpp @@ -272,11 +272,8 @@ static EventRegions GetEventRegions(const LayerMetricsWrapper& aLayer) { if (aLayer.IsScrollInfoLayer()) { - ParentLayerIntRect compositionBounds(RoundedToInt(aLayer.Metrics().GetCompositionBounds())); - nsIntRegion hitRegion(ParentLayerIntRect::ToUntyped(compositionBounds)); - EventRegions eventRegions(hitRegion); - eventRegions.mDispatchToContentHitRegion = eventRegions.mHitRegion; - return eventRegions; + return EventRegions(nsIntRegion(ParentLayerIntRect::ToUntyped( + RoundedToInt(aLayer.Metrics().GetCompositionBounds())))); } return aLayer.GetEventRegions(); }