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

Unified Diff: cc/trees/layer_tree_host_common.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_host_common.cc
diff --git a/cc/trees/layer_tree_host_common.cc b/cc/trees/layer_tree_host_common.cc
index 8f6614536d42110f9f1030edb9265ad29a3e8115..802acba2f0977cc2f1cb31ba59af802cbff01830 100644
--- a/cc/trees/layer_tree_host_common.cc
+++ b/cc/trees/layer_tree_host_common.cc
@@ -1083,7 +1083,7 @@ static void PreCalculateMetaInformationInternal(
recursive_data->num_layer_or_descendants_with_copy_request++;
if (!layer->touch_event_handler_region().IsEmpty() ||
- layer->have_wheel_event_handlers())
+ layer->wheel_event_properties() != EventListenerProperties::NONE)
recursive_data->num_layer_or_descendants_with_input_handler++;
layer->set_num_unclipped_descendants(
@@ -1131,7 +1131,7 @@ static void PreCalculateMetaInformationInternal(
recursive_data->num_layer_or_descendants_with_copy_request++;
if (!layer->touch_event_handler_region().IsEmpty() ||
- layer->have_wheel_event_handlers())
+ layer->wheel_event_properties() != EventListenerProperties::NONE)
recursive_data->num_layer_or_descendants_with_input_handler++;
layer->draw_properties().num_unclipped_descendants =

Powered by Google App Engine
This is Rietveld 408576698