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

Unified Diff: Source/web/WebFormControlElement.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/testing/Internals.cpp ('k') | Source/web/WebInputElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebFormControlElement.cpp
diff --git a/Source/web/WebFormControlElement.cpp b/Source/web/WebFormControlElement.cpp
index bbaa64797495379969545ff900ae54267ae5aad0..bd929fed481b9ecfff2baaea53753d82577490cb 100644
--- a/Source/web/WebFormControlElement.cpp
+++ b/Source/web/WebFormControlElement.cpp
@@ -64,6 +64,16 @@ void WebFormControlElement::dispatchFormControlChangeEvent()
unwrap<HTMLFormControlElement>()->dispatchFormControlChangeEvent();
}
+bool WebFormControlElement::isAutofilled() const
+{
+ return constUnwrap<HTMLFormControlElement>()->isAutofilled();
+}
+
+void WebFormControlElement::setAutofilled(bool autofilled)
+{
+ unwrap<HTMLFormControlElement>()->setAutofilled(autofilled);
+}
+
WebString WebFormControlElement::nameForAutofill() const
{
String name = constUnwrap<HTMLFormControlElement>()->name();
« no previous file with comments | « Source/core/testing/Internals.cpp ('k') | Source/web/WebInputElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698