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

Unified Diff: Source/core/accessibility/AXNodeObject.cpp

Issue 551283002: Remove HTMLInputElement::isText and isTextType. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | « no previous file | Source/core/html/HTMLInputElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/accessibility/AXNodeObject.cpp
diff --git a/Source/core/accessibility/AXNodeObject.cpp b/Source/core/accessibility/AXNodeObject.cpp
index 330d01145a42be619afe32844bf08799dbb11c82..7f663aa8817b6fbc4f92b07476e72f44139da862 100644
--- a/Source/core/accessibility/AXNodeObject.cpp
+++ b/Source/core/accessibility/AXNodeObject.cpp
@@ -580,10 +580,8 @@ bool AXNodeObject::isNativeTextControl() const
if (isHTMLTextAreaElement(*node))
return true;
- if (isHTMLInputElement(*node)) {
- HTMLInputElement* input = toHTMLInputElement(node);
- return input->isText() || input->type() == InputTypeNames::number;
- }
+ if (isHTMLInputElement(*node))
+ return toHTMLInputElement(node)->isTextField();
return false;
}
« no previous file with comments | « no previous file | Source/core/html/HTMLInputElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698