summaryrefslogtreecommitdiffstats
path: root/webkit/glue/dom_operations.cc
diff options
context:
space:
mode:
authortkent@chromium.org <tkent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-22 00:11:03 +0000
committertkent@chromium.org <tkent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-22 00:11:03 +0000
commita11728e89e8292d22c2d1d601e5e25d29c0cd3c3 (patch)
treec80affa1f9cd3d732e880ed44f223f9dc83b2284 /webkit/glue/dom_operations.cc
parent6673317aabd12e4575027ed300d006f9e2bc3824 (diff)
downloadchromium_src-a11728e89e8292d22c2d1d601e5e25d29c0cd3c3.zip
chromium_src-a11728e89e8292d22c2d1d601e5e25d29c0cd3c3.tar.gz
chromium_src-a11728e89e8292d22c2d1d601e5e25d29c0cd3c3.tar.bz2
Stop using WebInputElement::inputType().
WebInputElement::inputType is deprecated because HTMLInputElement::inputType is deprecated. We should stop using it and use is<Type>() functions. BUG=webkit.org/b/45872 TEST=none; no functional changes. Review URL: http://codereview.chromium.org/3421023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60132 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/dom_operations.cc')
-rw-r--r--webkit/glue/dom_operations.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/webkit/glue/dom_operations.cc b/webkit/glue/dom_operations.cc
index f9868b2..22e0e75 100644
--- a/webkit/glue/dom_operations.cc
+++ b/webkit/glue/dom_operations.cc
@@ -186,7 +186,7 @@ static bool FillFormImpl(FormElements* fe, const FormData& data) {
WebKit::WebInputElement& element = it->second;
if (!element.value().isEmpty()) // Don't overwrite pre-filled values.
continue;
- if (element.inputType() == WebInputElement::Password &&
+ if (element.isPasswordField() &&
(!element.isEnabledFormControl() || element.hasAttribute("readonly"))) {
continue; // Don't fill uneditable password fields.
}
@@ -314,7 +314,7 @@ WebString GetSubResourceLinkFromElement(const WebElement& element) {
attribute_name = "src";
} else if (element.hasTagName("input")) {
const WebInputElement input = element.toConst<WebInputElement>();
- if (input.inputType() == WebInputElement::Image) {
+ if (input.isImageButton()) {
attribute_name = "src";
}
} else if (element.hasTagName("body") ||