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

Unified Diff: Source/core/html/HTMLInputElement.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/HTMLInputElement.h ('k') | Source/core/html/HTMLSelectElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLInputElement.cpp
diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp
index 2f9aa05e0e8f0294f60593aa36dee75040e5faa3..e058b53157640de5ca2c24ae19bc6758ccd449d0 100644
--- a/Source/core/html/HTMLInputElement.cpp
+++ b/Source/core/html/HTMLInputElement.cpp
@@ -365,9 +365,9 @@ bool HTMLInputElement::isKeyboardFocusable(KeyboardEvent* event) const
return m_inputType->isKeyboardFocusable(event);
}
-bool HTMLInputElement::isMouseFocusable() const
+bool HTMLInputElement::shouldShowFocusRingOnMouseFocus() const
{
- return m_inputType->isMouseFocusable();
+ return m_inputType->shouldShowFocusRingOnMouseFocus();
}
bool HTMLInputElement::isTextFormControlKeyboardFocusable(KeyboardEvent* event) const
@@ -375,11 +375,6 @@ bool HTMLInputElement::isTextFormControlKeyboardFocusable(KeyboardEvent* event)
return HTMLTextFormControlElement::isKeyboardFocusable(event);
}
-bool HTMLInputElement::isTextFormControlMouseFocusable() const
-{
- return HTMLTextFormControlElement::isMouseFocusable();
-}
-
void HTMLInputElement::updateFocusAppearance(bool restorePreviousSelection)
{
if (isTextField()) {
« no previous file with comments | « Source/core/html/HTMLInputElement.h ('k') | Source/core/html/HTMLSelectElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698