Index: third_party/WebKit/Source/core/html/HTMLLabelElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLLabelElement.cpp b/third_party/WebKit/Source/core/html/HTMLLabelElement.cpp |
index 191e9c178e957426f41061892417ab03a85f7cd1..46a757fe7ea9df2e137560fd6846edd4cc22d1b6 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLLabelElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLLabelElement.cpp |
@@ -189,9 +189,11 @@ void HTMLLabelElement::defaultEventHandler(Event* evt) { |
// selection of label, only then focus the control element. |
// In case of double click or triple click, selection will be there, |
// so do not focus the control element. |
- if (!isLabelTextSelected) |
+ if (!isLabelTextSelected) { |
element->focus(FocusParams(SelectionBehaviorOnFocus::Restore, |
- WebFocusTypeMouse, nullptr)); |
+ WebFocusTypeMouse, |
+ InputDeviceCapabilities::Null)); |
+ } |
} |
// Click the corresponding control. |