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

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

Issue 23496036: Make it possible to focus on 0-size form controls and anchors. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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/HTMLFormControlElement.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLFormControlElement.cpp
diff --git a/Source/core/html/HTMLFormControlElement.cpp b/Source/core/html/HTMLFormControlElement.cpp
index 7d0a9b937f29ab804e4f97d718fe96dbdecd557a..7f50078ca85d9b006a1a49370c69a53b480b4f1a 100644
--- a/Source/core/html/HTMLFormControlElement.cpp
+++ b/Source/core/html/HTMLFormControlElement.cpp
@@ -313,15 +313,6 @@ bool HTMLFormControlElement::supportsFocus() const
return !isDisabledFormControl();
}
-bool HTMLFormControlElement::rendererIsFocusable() const
-{
- // If there's a renderer, make sure the size isn't empty, but if there's no renderer,
- // it might still be focusable if it's in a canvas subtree (handled in Element::rendererIsFocusable).
- if (renderer() && (!renderer()->isBox() || toRenderBox(renderer())->size().isEmpty()))
- return false;
- return HTMLElement::rendererIsFocusable();
-}
-
bool HTMLFormControlElement::isKeyboardFocusable() const
{
// Skip tabIndex check in a parent class.
« no previous file with comments | « Source/core/html/HTMLFormControlElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698