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

Unified Diff: Source/core/html/HTMLSelectElement.cpp

Issue 16194013: Mouse press should focus on any types of form controls. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 6 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
« no previous file with comments | « Source/core/html/HTMLSelectElement.h ('k') | Source/core/html/HTMLTextAreaElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLSelectElement.cpp
diff --git a/Source/core/html/HTMLSelectElement.cpp b/Source/core/html/HTMLSelectElement.cpp
index 2e97a68ace2e14179db1e145afa0c63c39e2d66a..8add2a060378e1989ce65962f2f5908f69d97553 100644
--- a/Source/core/html/HTMLSelectElement.cpp
+++ b/Source/core/html/HTMLSelectElement.cpp
@@ -319,11 +319,9 @@ bool HTMLSelectElement::isKeyboardFocusable(KeyboardEvent* event) const
return HTMLFormControlElementWithState::isKeyboardFocusable(event);
}
-bool HTMLSelectElement::isMouseFocusable() const
+bool HTMLSelectElement::shouldShowFocusRingOnMouseFocus() const
{
- if (renderer())
- return isFocusable();
- return HTMLFormControlElementWithState::isMouseFocusable();
+ return true;
}
bool HTMLSelectElement::canSelectAll() const
« no previous file with comments | « Source/core/html/HTMLSelectElement.h ('k') | Source/core/html/HTMLTextAreaElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698