summaryrefslogtreecommitdiffstats
path: root/webkit/glue/dom_operations.cc
diff options
context:
space:
mode:
authormbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-17 19:10:55 +0000
committermbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-17 19:10:55 +0000
commit762ec957bb973eb4039061ff3d1d423090311835 (patch)
treef8a7fcafb901f654c049a249d32c3d93056702f0 /webkit/glue/dom_operations.cc
parente0bba9950b1b2ff97835d6687a300944bd80520a (diff)
downloadchromium_src-762ec957bb973eb4039061ff3d1d423090311835.zip
chromium_src-762ec957bb973eb4039061ff3d1d423090311835.tar.gz
chromium_src-762ec957bb973eb4039061ff3d1d423090311835.tar.bz2
Catch up with webkit change which removes id() from the HTMLElement
and instead accesses the attributes directly. BUG=none TEST=none TBR=jparent Review URL: http://codereview.chromium.org/172053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23562 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/dom_operations.cc')
-rw-r--r--webkit/glue/dom_operations.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/webkit/glue/dom_operations.cc b/webkit/glue/dom_operations.cc
index c05cdf7..4a826fb 100644
--- a/webkit/glue/dom_operations.cc
+++ b/webkit/glue/dom_operations.cc
@@ -202,7 +202,8 @@ static bool FillFormToUploadFileImpl(WebCore::HTMLFormElement* fe,
static_cast<WebCore::HTMLInputElement*>(elements->item(i));
std::wstring name = StringToStdWString(ie->name());
- std::wstring id = StringToStdWString(ie->id());
+ std::wstring id = StringToStdWString(
+ ie->getAttribute(WebCore::HTMLNames::idAttr));
if (!file_found &&
ie->inputType() == WebCore::HTMLInputElement::FILE &&
@@ -269,7 +270,8 @@ bool FillFormToUploadFile(WebView* view, const FileUploadData& data) {
WebCore::HTMLFormElement* fe =
static_cast<WebCore::HTMLFormElement*>(forms->item(i));
std::wstring name = StringToStdWString(fe->name());
- std::wstring id = StringToStdWString(fe->id());
+ std::wstring id = StringToStdWString(
+ fe->getAttribute(WebCore::HTMLNames::idAttr));
if (data.form_name.empty() ||
id == data.form_name || name == data.form_name) {
if (FillFormToUploadFileImpl(fe, data))