Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(909)

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 2807433003: No pointer captured when the pointer lock is applied (Closed)
Patch Set: pointer lock Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index a382032e07755c937981c9626f178ced875e36f2..5104976ba8b0f0ecb98693449aafe4635ed54fc0 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -2247,6 +2247,9 @@ void WebViewImpl::setCursorVisibilityState(bool isVisible) {
void WebViewImpl::mouseCaptureLost() {
TRACE_EVENT_ASYNC_END0("input", "capturing mouse", this);
m_mouseCaptureNode = nullptr;
+ LocalFrame* focusedFrame = focusedLocalFrameInWidget();
Navid Zolghadr 2017/04/10 17:16:14 Please make sure scheib@ knows about this change i
+ if (focusedFrame)
+ focusedFrame->eventHandler().releasePointerCapture();
}
void WebViewImpl::setFocus(bool enable) {

Powered by Google App Engine
This is Rietveld 408576698