Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 1639363002: Move have_wheel_event_handlers to WebLayerTreeView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 03048f3e7f42660bcc569c3b92ae4d4fa795ceb7..2e0e5b98791718a419b4fe75fdc26803d44b097f 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -571,16 +571,8 @@ bool LayerTreeHostImpl::IsCurrentlyScrollingLayerAt(
return false;
}
-bool LayerTreeHostImpl::HaveWheelEventHandlersAt(
- const gfx::Point& viewport_point) {
- gfx::PointF device_viewport_point = gfx::ScalePoint(
- gfx::PointF(viewport_point), active_tree_->device_scale_factor());
-
- LayerImpl* layer_impl =
- active_tree_->FindLayerWithWheelHandlerThatIsHitByPoint(
- device_viewport_point);
-
- return layer_impl != NULL;
+bool LayerTreeHostImpl::HaveWheelEventHandlers() const {
+ return active_tree_->have_wheel_event_handlers();
}
static LayerImpl* NextLayerInScrollOrder(LayerImpl* layer) {

Powered by Google App Engine
This is Rietveld 408576698