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

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

Issue 2537133005: New interface and function for form association (Closed)
Patch Set: Added to BUILD.gn Created 4 years 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
Index: third_party/WebKit/Source/core/html/HTMLFormControlElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLFormControlElement.h b/third_party/WebKit/Source/core/html/HTMLFormControlElement.h
index 0d2a9a180aab1be9a88a44d35dd0f8bc290e33f8..79334a5742306a002f7d121528d85f36ce1a849c 100644
--- a/third_party/WebKit/Source/core/html/HTMLFormControlElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLFormControlElement.h
@@ -26,6 +26,7 @@
#define HTMLFormControlElement_h
#include "core/CoreExport.h"
+#include "core/html/FormAssociated.h"
#include "core/html/LabelableElement.h"
#include "core/html/ListedElement.h"
@@ -43,7 +44,8 @@ enum CheckValidityEventBehavior {
// ListedElement, and listed element implementations should use
// HTMLFormControlElement unless there is a special reason.
class CORE_EXPORT HTMLFormControlElement : public LabelableElement,
- public ListedElement {
+ public ListedElement,
+ public FormAssociated {
USING_GARBAGE_COLLECTED_MIXIN(HTMLFormControlElement);
public:
@@ -127,6 +129,9 @@ class CORE_EXPORT HTMLFormControlElement : public LabelableElement,
void copyNonAttributePropertiesFromElement(const Element&) override;
+ FormAssociated* toFormAssociatedOrNull() override { return this; };
+ void associateWith(HTMLFormElement*) override;
+
protected:
HTMLFormControlElement(const QualifiedName& tagName,
Document&,
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLElement.h ('k') | third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698