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

Unified Diff: Source/core/loader/FormSubmission.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/shadow/TextFieldDecorationElement.cpp ('k') | Source/core/page/Chrome.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/FormSubmission.cpp
diff --git a/Source/core/loader/FormSubmission.cpp b/Source/core/loader/FormSubmission.cpp
index 7407bef9440d0f35fc8b4fefee2962c594d493e7..22bc20c5a715bb03280902e2c7bac10dd52d87cc 100644
--- a/Source/core/loader/FormSubmission.cpp
+++ b/Source/core/loader/FormSubmission.cpp
@@ -186,8 +186,8 @@ PassRefPtr<FormSubmission> FormSubmission::create(HTMLFormElement* form, const A
HTMLElement* element = toHTMLElement(control);
if (!element->isDisabledFormControl())
control->appendFormData(*domFormData, isMultiPartForm);
- if (element->hasLocalName(inputTag)) {
- HTMLInputElement* input = static_cast<HTMLInputElement*>(control);
+ if (element->hasTagName(inputTag)) {
+ HTMLInputElement* input = toHTMLInputElement(element);
if (input->isTextField())
formValues.append(pair<String, String>(input->name().string(), input->value()));
if (input->isPasswordField() && !input->value().isEmpty())
« no previous file with comments | « Source/core/html/shadow/TextFieldDecorationElement.cpp ('k') | Source/core/page/Chrome.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698