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 ab5b0e7b38da10ede99bb915ea7f6405b1e21267..f280d80ae151032b1b0f4a3ea9e96cb4c80abc98 100644 |
--- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp |
+++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp |
@@ -958,14 +958,16 @@ void ChromeClientImpl::setTouchAction(TouchAction touchAction) |
client->setTouchAction(static_cast<WebTouchAction>(touchAction)); |
} |
-bool ChromeClientImpl::requestPointerLock() |
+bool ChromeClientImpl::requestPointerLock(LocalFrame* frame) |
{ |
- return m_webView->requestPointerLock(); |
+ LocalFrame* localRoot = frame->localFrameRoot(); |
+ return WebLocalFrameImpl::fromFrame(localRoot)->frameWidget()->client()->requestPointerLock(); |
} |
-void ChromeClientImpl::requestPointerUnlock() |
+void ChromeClientImpl::requestPointerUnlock(LocalFrame* frame) |
{ |
- return m_webView->requestPointerUnlock(); |
+ LocalFrame* localRoot = frame->localFrameRoot(); |
+ return WebLocalFrameImpl::fromFrame(localRoot)->frameWidget()->client()->requestPointerUnlock(); |
} |
void ChromeClientImpl::annotatedRegionsChanged() |