| Index: third_party/WebKit/Source/web/ChromeClientImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/ChromeClientImpl.cpp b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
|
| index c2bd61290d86b9bbebaa2e65327387f73a93ae27..4855f044552b80c724fe6958c549476572e942ea 100644
|
| --- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
|
| @@ -973,8 +973,15 @@ bool ChromeClientImpl::hasScrollEventHandlers() const {
|
| return false;
|
| }
|
|
|
| -void ChromeClientImpl::setTouchAction(TouchAction touchAction) {
|
| - if (WebViewClient* client = m_webView->client())
|
| +void ChromeClientImpl::setTouchAction(LocalFrame* frame,
|
| + TouchAction touchAction) {
|
| + 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));
|
| }
|
|
|
|
|