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

Unified Diff: third_party/WebKit/Source/core/html/HTMLImageElement.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/HTMLImageElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLImageElement.h b/third_party/WebKit/Source/core/html/HTMLImageElement.h
index 1bc5c0cd1c677c4b104b4df99b2b9fc23ca74200..884a8b3e3bc289e59ad35537221e44199c9d17df 100644
--- a/third_party/WebKit/Source/core/html/HTMLImageElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLImageElement.h
@@ -27,6 +27,7 @@
#include "bindings/core/v8/ActiveScriptWrappable.h"
#include "core/CoreExport.h"
#include "core/fetch/FetchRequest.h"
+#include "core/html/FormAssociated.h"
#include "core/html/HTMLElement.h"
#include "core/html/HTMLImageLoader.h"
#include "core/html/canvas/CanvasImageSource.h"
@@ -44,7 +45,8 @@ class ImageBitmapOptions;
class CORE_EXPORT HTMLImageElement final : public HTMLElement,
public CanvasImageSource,
public ImageBitmapSource,
- public ActiveScriptWrappable {
+ public ActiveScriptWrappable,
+ public FormAssociated {
DEFINE_WRAPPERTYPEINFO();
USING_GARBAGE_COLLECTED_MIXIN(HTMLImageElement);
@@ -140,6 +142,9 @@ class CORE_EXPORT HTMLImageElement final : public HTMLElement,
const ImageBitmapOptions&,
ExceptionState&) override;
+ FormAssociated* toFormAssociatedOrNull() override { return this; };
+ void associateWith(HTMLFormElement*) override;
+
protected:
explicit HTMLImageElement(Document&,
HTMLFormElement* = 0,

Powered by Google App Engine
This is Rietveld 408576698