[iOS] Don't turn fields yellow after filling credentials
[WebKit-https.git] / Source / WebCore / editing / ios / AutofillElements.cpp
index 9ba8a44c596d8562f49c54e8a334868cea073451..75b1a04d47211c5ba229b2923ca5c85cb2cbbd1f 100644 (file)
@@ -119,14 +119,10 @@ std::optional<AutofillElements> AutofillElements::computeAutofillElements(Ref<HT
 
 void AutofillElements::autofill(String username, String password)
 {
-    if (m_username) {
+    if (m_username)
         m_username->setValueForUser(username);
-        m_username->setAutoFilled();
-    }
-    if (m_password) {
+    if (m_password)
         m_password->setValueForUser(password);
-        m_password->setAutoFilled();
-    }
 }
 
 } // namespace WebCore