Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1143)

Unified Diff: Source/core/html/HTMLInputElement.cpp

Issue 26622007: Move isAutofilled and setAutofilled from HTMLInputElement to HTMLFormControlElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update messaging in test. Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/HTMLInputElement.h ('k') | Source/core/html/HTMLKeygenElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLInputElement.cpp
diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp
index 1e361ca47da3a56f40a2a666f4c751b1847631ce..2c870efc110c728589badb5dcc9970a43c7f4ed1 100644
--- a/Source/core/html/HTMLInputElement.cpp
+++ b/Source/core/html/HTMLInputElement.cpp
@@ -109,7 +109,6 @@ HTMLInputElement::HTMLInputElement(const QualifiedName& tagName, Document& docum
, m_hasType(false)
, m_isActivatedSubmit(false)
, m_autocomplete(Uninitialized)
- , m_isAutofilled(false)
, m_hasNonEmptyList(false)
, m_stateRestored(false)
, m_parsingInProgress(createdByParser)
@@ -840,12 +839,11 @@ bool HTMLInputElement::appendFormData(FormDataList& encoding, bool multipart)
return m_inputType->isFormDataAppendable() && m_inputType->appendFormData(encoding, multipart);
}
-void HTMLInputElement::reset()
+void HTMLInputElement::resetImpl()
{
if (m_inputType->storesValueSeparateFromAttribute())
setValue(String());
- setAutofilled(false);
setChecked(hasAttribute(checkedAttr));
m_reflectsCheckedAttribute = true;
}
@@ -1322,15 +1320,6 @@ KURL HTMLInputElement::src() const
return document().completeURL(fastGetAttribute(srcAttr));
}
-void HTMLInputElement::setAutofilled(bool autofilled)
-{
- if (autofilled == m_isAutofilled)
- return;
-
- m_isAutofilled = autofilled;
- setNeedsStyleRecalc();
-}
-
FileList* HTMLInputElement::files()
{
return m_inputType->files();
« no previous file with comments | « Source/core/html/HTMLInputElement.h ('k') | Source/core/html/HTMLKeygenElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698