Index: third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp |
diff --git a/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp |
index c29f82eb7b25af03fbf2c1864ab1c3011038bc7e..602466e56e8e535bbdbb2ea983566a9382287ba1 100644 |
--- a/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp |
+++ b/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp |
@@ -212,9 +212,9 @@ PassRefPtr<TypeBuilder::Array<TypeBuilder::LayerTree::Layer> > InspectorLayerTre |
RefPtr<TypeBuilder::Array<TypeBuilder::LayerTree::Layer> > layers = TypeBuilder::Array<TypeBuilder::LayerTree::Layer>::create(); |
buildLayerIdToNodeIdMap(compositor->rootLayer(), layerIdToNodeIdMap); |
int scrollingLayerId = m_inspectedFrames->root()->view()->layerForScrolling()->platformLayer()->id(); |
- bool haveWheelEventHandlers = m_inspectedFrames->root()->chromeClient().haveWheelEventHandlers(); |
+ bool haveBlockingWheelEventHandlers = m_inspectedFrames->root()->chromeClient().eventListenerProperties(WebEventListenerClass::MouseWheel) == WebEventListenerProperties::Blocking; |
- gatherGraphicsLayers(rootGraphicsLayer(), layerIdToNodeIdMap, layers, haveWheelEventHandlers, scrollingLayerId); |
+ gatherGraphicsLayers(rootGraphicsLayer(), layerIdToNodeIdMap, layers, haveBlockingWheelEventHandlers, scrollingLayerId); |
return layers.release(); |
} |