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

Unified Diff: third_party/WebKit/Source/core/html/HTMLLegendElement.cpp

Issue 1420693006: Introduce a struct to store arguments of Element::focus(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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)
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLLegendElement.h ('k') | third_party/WebKit/Source/core/html/HTMLSelectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698