From ee0b6981de62e9a234d031eab793da8d7752197b Mon Sep 17 00:00:00 2001 From: dtapuska Date: Fri, 29 Jan 2016 07:14:48 -0800 Subject: Move have_wheel_event_handlers to WebLayerTreeView. Since having wheel event handlers was based on the document in general there was no need for the hit testing code for determining the layer in cc. So it makes more sense to have these fields on the layer tree view. BUG=489802 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1639363002 Cr-Commit-Position: refs/heads/master@{#372346} --- cc/debug/debug_rect_history.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cc/debug') diff --git a/cc/debug/debug_rect_history.cc b/cc/debug/debug_rect_history.cc index 5ac2b5d..33896f8 100644 --- a/cc/debug/debug_rect_history.cc +++ b/cc/debug/debug_rect_history.cc @@ -14,6 +14,7 @@ #include "cc/trees/damage_tracker.h" #include "cc/trees/layer_tree_host.h" #include "cc/trees/layer_tree_host_common.h" +#include "cc/trees/layer_tree_impl.h" #include "ui/gfx/geometry/rect_conversions.h" namespace cc { @@ -180,7 +181,7 @@ void DebugRectHistory::SaveWheelEventHandlerRects(LayerImpl* layer) { } void DebugRectHistory::SaveWheelEventHandlerRectsCallback(LayerImpl* layer) { - if (!layer->have_wheel_event_handlers()) + if (!layer->layer_tree_impl()->have_wheel_event_handlers()) return; debug_rects_.push_back( -- cgit v1.1