| Index: third_party/WebKit/Source/core/html/HTMLLegendElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLLegendElement.cpp b/third_party/WebKit/Source/core/html/HTMLLegendElement.cpp
|
| index b548d3bf9a77e54a379953c5ff8400e22ea0bb7c..19e95de7f70ec417e6063c58617ffd9b907d6a58 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLLegendElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLLegendElement.cpp
|
| @@ -54,16 +54,16 @@ HTMLFormControlElement* HTMLLegendElement::associatedControl()
|
| return Traversal<HTMLFormControlElement>::next(*fieldset, fieldset);
|
| }
|
|
|
| -void HTMLLegendElement::focus(bool, WebFocusType type, InputDeviceCapabilities* sourceCapabilities)
|
| +void HTMLLegendElement::focus(const FocusParams& params)
|
| {
|
| if (isFocusable()) {
|
| - Element::focus(true, type, sourceCapabilities);
|
| + Element::focus(params);
|
| return;
|
| }
|
|
|
| // To match other browsers' behavior, never restore previous selection.
|
| if (HTMLFormControlElement* control = associatedControl())
|
| - control->focus(false, type, sourceCapabilities);
|
| + control->focus(FocusParams(SelectionBehaviorOnFocus::Reset, params.type, params.sourceCapabilities));
|
| }
|
|
|
| void HTMLLegendElement::accessKeyAction(bool sendMouseEvents)
|
|
|