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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 1577263004: Communicate whether passive event listeners exist to cc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_wheel_passive_listeners
Patch Set: Fix Android/ChromeOS build problems with bit packed enum class 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_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index 516abb04023befdbe6c064cfea48c54457632b31..c79610370f8b8003356ae015d7f585101c782de5 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -1699,7 +1699,7 @@ struct HitTestVisibleScrollableOrTouchableFunctor {
return layer->IsDrawnRenderSurfaceLayerListMember() ||
ScrollsAnyDrawnRenderSurfaceLayerListMember(layer) ||
!layer->touch_event_handler_region().IsEmpty() ||
- layer->have_wheel_event_handlers();
+ layer->wheel_event_properties() != EventListenerProperties::NONE;
}
};
@@ -1747,7 +1747,7 @@ static bool LayerHasTouchEventHandlersAt(const gfx::PointF& screen_space_point,
struct FindWheelEventLayerFunctor {
bool operator()(LayerImpl* layer) const {
- return layer->have_wheel_event_handlers();
+ return layer->wheel_event_properties() != EventListenerProperties::NONE;
}
};

Powered by Google App Engine
This is Rietveld 408576698