Index: third_party/WebKit/Source/web/WebPagePopupImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebPagePopupImpl.cpp b/third_party/WebKit/Source/web/WebPagePopupImpl.cpp |
index 880e19fa3abdc023744b1266cc2903d4b36b1115..34ad8d9dda5a1f3bb45fd428d4c8cb27c43f7ed5 100644 |
--- a/third_party/WebKit/Source/web/WebPagePopupImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebPagePopupImpl.cpp |
@@ -201,8 +201,14 @@ class PagePopupChromeClient final : public EmptyChromeClient { |
return false; |
} |
- void setTouchAction(TouchAction touchAction) override { |
- if (WebViewClient* client = m_popup->m_webView->client()) |
+ void setTouchAction(LocalFrame* frame, TouchAction touchAction) override { |
+ DCHECK(frame); |
+ WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(frame); |
+ WebFrameWidgetBase* widget = webFrame->localRoot()->frameWidget(); |
+ if (!widget) |
+ return; |
+ |
+ if (WebWidgetClient* client = widget->client()) |
client->setTouchAction(static_cast<WebTouchAction>(touchAction)); |
} |