Index: cc/debug/debug_rect_history.cc |
diff --git a/cc/debug/debug_rect_history.cc b/cc/debug/debug_rect_history.cc |
index 33896f8c16640aa7815e31e9be93f333e1bb9113..59ca9de9ce63eb1bc0bebce7560fab495ffbb1d9 100644 |
--- a/cc/debug/debug_rect_history.cc |
+++ b/cc/debug/debug_rect_history.cc |
@@ -197,7 +197,7 @@ void DebugRectHistory::SaveScrollEventHandlerRects(LayerImpl* layer) { |
} |
void DebugRectHistory::SaveScrollEventHandlerRectsCallback(LayerImpl* layer) { |
- if (!layer->have_scroll_event_handlers()) |
+ if (!layer->layer_tree_impl()->have_scroll_event_handlers()) |
return; |
debug_rects_.push_back( |