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

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

Issue 2557583003: Move Form Association Code to FormAssociated::associateWith (Closed)
Patch Set: Check for m_inputType before accessing it 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLImageElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 setHasCustomStyleCallbacks(); 62 setHasCustomStyleCallbacks();
63 associateByParser(form);
64 } 63 }
65 64
66 HTMLFormControlElement::~HTMLFormControlElement() {} 65 HTMLFormControlElement::~HTMLFormControlElement() {}
67 66
68 DEFINE_TRACE(HTMLFormControlElement) { 67 DEFINE_TRACE(HTMLFormControlElement) {
69 ListedElement::trace(visitor); 68 ListedElement::trace(visitor);
70 LabelableElement::trace(visitor); 69 LabelableElement::trace(visitor);
71 } 70 }
72 71
73 String HTMLFormControlElement::formAction() const { 72 String HTMLFormControlElement::formAction() const {
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 trimmedName = fullName.stripWhiteSpace(); 619 trimmedName = fullName.stripWhiteSpace();
621 return trimmedName; 620 return trimmedName;
622 } 621 }
623 622
624 void HTMLFormControlElement::copyNonAttributePropertiesFromElement( 623 void HTMLFormControlElement::copyNonAttributePropertiesFromElement(
625 const Element& source) { 624 const Element& source) {
626 HTMLElement::copyNonAttributePropertiesFromElement(source); 625 HTMLElement::copyNonAttributePropertiesFromElement(source);
627 setNeedsValidityCheck(); 626 setNeedsValidityCheck();
628 } 627 }
629 628
630 void HTMLFormControlElement::associateWith(HTMLFormElement*){}; 629 void HTMLFormControlElement::associateWith(HTMLFormElement* form) {
630 associateByParser(form);
631 };
631 632
632 } // namespace blink 633 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLImageElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698