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

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, 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/HTMLInputElement.cpp
diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp
index e832e65abc5e3970dbf792e23f5e1146a3351523..58f0c0599a357ebd6bf91319f1d1a343a7d2d523 100644
--- a/Source/core/html/HTMLInputElement.cpp
+++ b/Source/core/html/HTMLInputElement.cpp
@@ -368,9 +368,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
@@ -378,11 +378,6 @@ bool HTMLInputElement::isTextFormControlKeyboardFocusable(KeyboardEvent* event)
return HTMLTextFormControlElement::isKeyboardFocusable(event);
}
-bool HTMLInputElement::isTextFormControlMouseFocusable() const
-{
- return HTMLTextFormControlElement::isMouseFocusable();
-}
-
void HTMLInputElement::updateFocusAppearance(bool restorePreviousSelection)
{
if (isTextField()) {

Powered by Google App Engine
This is Rietveld 408576698