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

Unified Diff: third_party/WebKit/Source/core/input/MouseEventManager.cpp

Issue 2466283002: [WIP Approach 2] Straighten up input method reactivation
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « content/renderer/render_widget.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/input/MouseEventManager.cpp
diff --git a/third_party/WebKit/Source/core/input/MouseEventManager.cpp b/third_party/WebKit/Source/core/input/MouseEventManager.cpp
index a89c3f03879be29859f570bb574141cfa8eb0ff2..e26acb5532d3296d2e6c2dfaacf90a733b21d804 100644
--- a/third_party/WebKit/Source/core/input/MouseEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/MouseEventManager.cpp
@@ -432,7 +432,7 @@ WebInputEventResult MouseEventManager::handleMouseFocus(
return WebInputEventResult::HandledSystem;
if (!page->focusController().setFocusedElement(
element, m_frame,
- FocusParams(SelectionBehaviorOnFocus::None, WebFocusTypeMouse,
+ FocusParams(SelectionBehaviorOnFocus::Restore, WebFocusTypeMouse,
sourceCapabilities)))
return WebInputEventResult::HandledSystem;
} else {
@@ -442,7 +442,7 @@ WebInputEventResult MouseEventManager::handleMouseFocus(
// fields before the button click is processed.
if (!page->focusController().setFocusedElement(
nullptr, m_frame,
- FocusParams(SelectionBehaviorOnFocus::None, WebFocusTypeNone,
+ FocusParams(SelectionBehaviorOnFocus::Restore, WebFocusTypeNone,
sourceCapabilities)))
return WebInputEventResult::HandledSystem;
}
« no previous file with comments | « content/renderer/render_widget.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698