Title: [197629] trunk/Source/WebCore
Revision
197629
Author
wei...@apple.com
Date
2016-03-05 20:18:54 -0800 (Sat, 05 Mar 2016)

Log Message

Fix two minor typos from http://trac.webkit.org/changeset/197626 that were causing some test failures.

* html/Autofill.cpp:
(WebCore::fieldNameMap):
(WebCore::AutofillData::createFromHTMLFormControlElement):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (197628 => 197629)


--- trunk/Source/WebCore/ChangeLog	2016-03-06 03:28:54 UTC (rev 197628)
+++ trunk/Source/WebCore/ChangeLog	2016-03-06 04:18:54 UTC (rev 197629)
@@ -1,3 +1,11 @@
+2016-03-05  Sam Weinig  <s...@webkit.org>
+
+        Fix two minor typos from http://trac.webkit.org/changeset/197626 that were causing some test failures.
+
+        * html/Autofill.cpp:
+        (WebCore::fieldNameMap):
+        (WebCore::AutofillData::createFromHTMLFormControlElement):
+
 2016-03-05  Chris Dumez  <cdu...@apple.com>
 
         Consolidate RuntimeApplicationChecks and RuntimeApplicationChecksIOS

Modified: trunk/Source/WebCore/html/Autofill.cpp (197628 => 197629)


--- trunk/Source/WebCore/html/Autofill.cpp	2016-03-06 03:28:54 UTC (rev 197628)
+++ trunk/Source/WebCore/html/Autofill.cpp	2016-03-06 04:18:54 UTC (rev 197629)
@@ -52,8 +52,8 @@
 {
     static NeverDestroyed<HashMap<AtomicString, AutofillInfo>> map;
     if (map.get().isEmpty()) {
-        map.get().add(AtomicString("on", AtomicString::ConstructFromLiteral), AutofillInfo{ AutofillFieldName::None, AutofillCategory::Off });
-        map.get().add(AtomicString("off", AtomicString::ConstructFromLiteral), AutofillInfo{ AutofillFieldName::None,  AutofillCategory::Automatic });
+        map.get().add(AtomicString("off", AtomicString::ConstructFromLiteral), AutofillInfo{ AutofillFieldName::None, AutofillCategory::Off });
+        map.get().add(AtomicString("on", AtomicString::ConstructFromLiteral), AutofillInfo{ AutofillFieldName::None,  AutofillCategory::Automatic });
         map.get().add(AtomicString("name", AtomicString::ConstructFromLiteral), AutofillInfo{ AutofillFieldName::Name, AutofillCategory::Normal });
         map.get().add(AtomicString("honorific-prefix", AtomicString::ConstructFromLiteral), AutofillInfo{ AutofillFieldName::HonorificPrefix, AutofillCategory::Normal });
         map.get().add(AtomicString("given-name", AtomicString::ConstructFromLiteral), AutofillInfo{ AutofillFieldName::GivenName, AutofillCategory::Normal });
@@ -222,7 +222,7 @@
     // 8. If category is Automatic, let the element's autofill field name be the string "on",
     // let its autofill hint set be empty, and let its IDL-exposed autofill value be the string
     // "on". Then, abort these steps.
-    if (category == AutofillCategory::Off)
+    if (category == AutofillCategory::Automatic)
         return { on, on.get().string() };
 
     // 9. Let scope tokens be an empty list.
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to