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

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

Issue 2537133005: New interface and function for form association (Closed)
Patch Set: Add interface to ListedElement and HTMLImageElement 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/ListedElement.h
diff --git a/third_party/WebKit/Source/core/html/ListedElement.h b/third_party/WebKit/Source/core/html/ListedElement.h
index cda9257a7a5280c2b7c263c07b83c1781234039a..dadf3d4af2ec82d1dcc1be2a43845ef5654bb381 100644
--- a/third_party/WebKit/Source/core/html/ListedElement.h
+++ b/third_party/WebKit/Source/core/html/ListedElement.h
@@ -26,6 +26,7 @@
#define ListedElement_h
#include "core/CoreExport.h"
+#include "core/html/FormAssociated.h"
#include "platform/heap/Handle.h"
#include "wtf/text/WTFString.h"
@@ -41,7 +42,8 @@ class Node;
class ValidityState;
// https://html.spec.whatwg.org/multipage/forms.html#category-listed
-class CORE_EXPORT ListedElement : public GarbageCollectedMixin {
+class CORE_EXPORT ListedElement : public GarbageCollectedMixin,
+ public FormAssociated {
public:
virtual ~ListedElement();
@@ -113,6 +115,8 @@ class CORE_EXPORT ListedElement : public GarbageCollectedMixin {
String customValidationMessage() const;
+ void setAssociatedForm(HTMLFormElement*) override;
+
private:
void setFormAttributeTargetObserver(FormAttributeTargetObserver*);
void resetFormAttributeTargetObserver();

Powered by Google App Engine
This is Rietveld 408576698