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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp

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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 Document& document) 51 Document& document)
52 : LabelableElement(tagName, document), 52 : LabelableElement(tagName, document),
53 m_ancestorDisabledState(AncestorDisabledStateUnknown), 53 m_ancestorDisabledState(AncestorDisabledStateUnknown),
54 m_dataListAncestorState(Unknown), 54 m_dataListAncestorState(Unknown),
55 m_isAutofilled(false), 55 m_isAutofilled(false),
56 m_hasValidationMessage(false), 56 m_hasValidationMessage(false),
57 m_willValidateInitialized(false), 57 m_willValidateInitialized(false),
58 m_willValidate(true), 58 m_willValidate(true),
59 m_isValid(true), 59 m_isValid(true),
60 m_validityIsDirty(false), 60 m_validityIsDirty(false),
61 m_wasFocusedByMouse(false) { 61 m_wasFocusedByMouse(false),
62 m_blocksFormSubmission(false) {
62 setHasCustomStyleCallbacks(); 63 setHasCustomStyleCallbacks();
63 } 64 }
64 65
65 HTMLFormControlElement::~HTMLFormControlElement() {} 66 HTMLFormControlElement::~HTMLFormControlElement() {}
66 67
67 DEFINE_TRACE(HTMLFormControlElement) { 68 DEFINE_TRACE(HTMLFormControlElement) {
68 ListedElement::trace(visitor); 69 ListedElement::trace(visitor);
69 LabelableElement::trace(visitor); 70 LabelableElement::trace(visitor);
70 } 71 }
71 72
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 const Element& source) { 635 const Element& source) {
635 HTMLElement::copyNonAttributePropertiesFromElement(source); 636 HTMLElement::copyNonAttributePropertiesFromElement(source);
636 setNeedsValidityCheck(); 637 setNeedsValidityCheck();
637 } 638 }
638 639
639 void HTMLFormControlElement::associateWith(HTMLFormElement* form) { 640 void HTMLFormControlElement::associateWith(HTMLFormElement* form) {
640 associateByParser(form); 641 associateByParser(form);
641 }; 642 };
642 643
643 } // namespace blink 644 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLFormControlElement.h ('k') | third_party/WebKit/Source/core/html/HTMLFormElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698