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

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

Issue 2628723004: Experiment with restricting form submission with open elements. (Closed)
Patch Set: Rebase. Created 3 years, 11 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
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 3902398e620242a75274be44b44728421055daa4..308b7639a9d0240f31cef069ede000d98d0be2c3 100644
--- a/third_party/WebKit/Source/core/html/HTMLFormControlElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLFormControlElement.h
@@ -132,6 +132,9 @@ class CORE_EXPORT HTMLFormControlElement : public LabelableElement,
FormAssociated* toFormAssociatedOrNull() override { return this; };
void associateWith(HTMLFormElement*) override;
+ bool blocksFormSubmission() const { return m_blocksFormSubmission; }
+ void setBlocksFormSubmission(bool value) { m_blocksFormSubmission = value; }
+
protected:
HTMLFormControlElement(const QualifiedName& tagName, Document&);
@@ -207,6 +210,7 @@ class CORE_EXPORT HTMLFormControlElement : public LabelableElement,
bool m_validityIsDirty : 1;
bool m_wasFocusedByMouse : 1;
+ bool m_blocksFormSubmission : 1;
};
inline bool isHTMLFormControlElement(const Element& element) {
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.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