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

Unified Diff: Source/core/html/HTMLFormControlElement.h

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/css/html.css ('k') | Source/core/html/HTMLFormControlElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLFormControlElement.h
diff --git a/Source/core/html/HTMLFormControlElement.h b/Source/core/html/HTMLFormControlElement.h
index 101b511a037016f927745f55fa031ea411bdd53e..dbbfbb23c45d9d903af1114f50918593a6d0d485 100644
--- a/Source/core/html/HTMLFormControlElement.h
+++ b/Source/core/html/HTMLFormControlElement.h
@@ -53,7 +53,7 @@ public:
void ancestorDisabledStateWasChanged();
- virtual void reset() { }
+ void reset();
virtual bool formControlValueMatchesRenderer() const { return m_valueMatchesRenderer; }
virtual void setFormControlValueMatchesRenderer(bool b) { m_valueMatchesRenderer = b; }
@@ -101,6 +101,9 @@ public:
void setAutofocused() { m_hasAutofocused = true; }
bool isAutofocusable() const;
+ bool isAutofilled() const { return m_isAutofilled; }
+ void setAutofilled(bool = true);
+
static HTMLFormControlElement* enclosingFormControlElement(Node*);
using Node::ref;
@@ -131,6 +134,8 @@ protected:
void setNeedsWillValidateCheck();
virtual bool recalcWillValidate() const;
+ virtual void resetImpl() { }
+
private:
virtual void refFormAssociatedElement() { ref(); }
virtual void derefFormAssociatedElement() { deref(); }
@@ -147,6 +152,7 @@ private:
OwnPtr<ValidationMessage> m_validationMessage;
bool m_disabled : 1;
+ bool m_isAutofilled : 1;
bool m_isReadOnly : 1;
bool m_isRequired : 1;
bool m_valueMatchesRenderer : 1;
« no previous file with comments | « Source/core/css/html.css ('k') | Source/core/html/HTMLFormControlElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698