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

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

Issue 16081007: Introduce toHTMLInputElement(Node*), and use it. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/HTMLFormControlElement.cpp ('k') | 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/html/HTMLFormElement.cpp
diff --git a/Source/core/html/HTMLFormElement.cpp b/Source/core/html/HTMLFormElement.cpp
index 9e433c04d01fcc617e9b16704afa25929a0560ee..633d4b9a15736ef180928eba707270253b8b0752 100644
--- a/Source/core/html/HTMLFormElement.cpp
+++ b/Source/core/html/HTMLFormElement.cpp
@@ -310,10 +310,10 @@ void HTMLFormElement::getTextFieldValues(StringPairVector& fieldNamesAndValues)
for (unsigned i = 0; i < m_associatedElements.size(); ++i) {
FormAssociatedElement* control = m_associatedElements[i];
HTMLElement* element = toHTMLElement(control);
- if (!element->hasLocalName(inputTag))
+ if (!element->hasTagName(inputTag))
continue;
- HTMLInputElement* input = static_cast<HTMLInputElement*>(control);
+ HTMLInputElement* input = toHTMLInputElement(element);
if (!input->isTextField())
continue;
« no previous file with comments | « Source/core/html/HTMLFormControlElement.cpp ('k') | Source/core/html/HTMLInputElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698