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

Unified Diff: third_party/WebKit/Source/core/html/forms/RadioInputType.cpp

Issue 2678683002: Delay instantiating InputDeviceCapabilities until accessed. (Closed)
Patch Set: rebased Created 3 years, 10 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/core/html/forms/RadioInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/RadioInputType.cpp b/third_party/WebKit/Source/core/html/forms/RadioInputType.cpp
index ed9afd7b6a38f98c8a5cac9fc199c402502a0738..12e7e5d98bba7848666058ecebc1ef8c1fd35f46 100644
--- a/third_party/WebKit/Source/core/html/forms/RadioInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/RadioInputType.cpp
@@ -126,9 +126,10 @@ void RadioInputType::handleKeydownEvent(KeyboardEvent* event) {
}
}
if (inputElement) {
- document.setFocusedElement(inputElement,
- FocusParams(SelectionBehaviorOnFocus::Restore,
- WebFocusTypeNone, nullptr));
+ document.setFocusedElement(
+ inputElement,
+ FocusParams(SelectionBehaviorOnFocus::Restore, WebFocusTypeNone,
+ InputDeviceCapabilities::Null));
inputElement->dispatchSimulatedClick(event, SendNoEvents);
event->setDefaultHandled();
return;
« no previous file with comments | « third_party/WebKit/Source/core/html/forms/InputTypeView.cpp ('k') | third_party/WebKit/Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698