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

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, common->default, etc. 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
Index: Source/core/html/HTMLSelectElement.cpp
diff --git a/Source/core/html/HTMLSelectElement.cpp b/Source/core/html/HTMLSelectElement.cpp
index 7d8288dc8b5892f37ffa805a17f95fc2f996a410..c11be6bb0308b00a106a7d5511caef8d0dec70b3 100644
--- a/Source/core/html/HTMLSelectElement.cpp
+++ b/Source/core/html/HTMLSelectElement.cpp
@@ -322,11 +322,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

Powered by Google App Engine
This is Rietveld 408576698