[BlackBerry] Use hasTagName instead of hasLocalName in CredentialTransformData
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 6 Mar 2013 15:05:54 +0000 (15:05 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 6 Mar 2013 15:05:54 +0000 (15:05 +0000)
https://bugs.webkit.org/show_bug.cgi?id=111544

Patch by Carlos Garcia Campos <cgarcia@igalia.com> on 2013-03-06
Reviewed by Rob Buis.

hasLocalName() expects an AtomicString, but we are passing a
HTMLName which is a QualifiedName.

* WebCoreSupport/CredentialTransformData.cpp:
(WebCore::CredentialTransformData::findPasswordFormFields): Use
hasTagName() instead of hasLocalName().

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@144921 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/blackberry/ChangeLog
Source/WebKit/blackberry/WebCoreSupport/CredentialTransformData.cpp

index bd8fe70..c64bb5e 100644 (file)
@@ -1,3 +1,17 @@
+2013-03-06  Carlos Garcia Campos  <cgarcia@igalia.com>
+
+        [BlackBerry] Use hasTagName instead of hasLocalName in CredentialTransformData
+        https://bugs.webkit.org/show_bug.cgi?id=111544
+
+        Reviewed by Rob Buis.
+
+        hasLocalName() expects an AtomicString, but we are passing a
+        HTMLName which is a QualifiedName.
+
+        * WebCoreSupport/CredentialTransformData.cpp:
+        (WebCore::CredentialTransformData::findPasswordFormFields): Use
+        hasTagName() instead of hasLocalName().
+
 2013-03-05  Otto Derek Cheung  <otcheung@rim.com>
 
         [BlackBerry] Authentication credentials lost when opening a new tab
index 3673425..d54a642 100644 (file)
@@ -194,7 +194,7 @@ bool CredentialTransformData::findPasswordFormFields(HTMLFormElement* form)
         if (!formElements[i]->isFormControlElement())
             continue;
         HTMLFormControlElement* formElement = static_cast<HTMLFormControlElement*>(formElements[i]);
-        if (!formElement->hasLocalName(HTMLNames::inputTag))
+        if (!formElement->hasTagName(HTMLNames::inputTag))
             continue;
 
         HTMLInputElement* inputElement = formElement->toInputElement();
@@ -216,7 +216,7 @@ bool CredentialTransformData::findPasswordFormFields(HTMLFormElement* form)
             if (!formElements[i]->isFormControlElement())
                 continue;
             HTMLFormControlElement* formElement = static_cast<HTMLFormControlElement*>(formElements[i]);
-            if (!formElement->hasLocalName(HTMLNames::inputTag))
+            if (!formElement->hasTagName(HTMLNames::inputTag))
                 continue;
 
             HTMLInputElement* inputElement = formElement->toInputElement();