| Index: third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
|
| diff --git a/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp b/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
|
| index be89186618379733becce7107e6ef7f3e41ab966..d06b8c13aa79086e0c7794132847ad34fae24188 100644
|
| --- a/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
|
| +++ b/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
|
| @@ -1005,8 +1005,9 @@ Region ScrollingCoordinator::ComputeShouldHandleScrollGestureOnMainThreadRegion(
|
| }
|
| }
|
|
|
| - if (const FrameView::PluginsSet* plugins = frame_view->Plugins()) {
|
| - for (const Member<PluginView>& plugin : *plugins) {
|
| + for (const auto& child : frame_view->Children()) {
|
| + if (child->IsPluginView()) {
|
| + PluginView* plugin = ToPluginView(child);
|
| if (plugin->WantsWheelEvents()) {
|
| IntRect box = frame_view->ConvertToRootFrame(plugin->FrameRect());
|
| should_handle_scroll_gesture_on_main_thread_region.Unite(box);
|
|
|