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

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

Issue 2561043002: Clean-up after Form Association Refactoring (Closed)
Patch Set: Removed constructorNeedsFormElement from scripts and HTMLTagNames 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
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, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2010 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 18 matching lines...) Expand all
29 #include "core/dom/NodeListsNodeData.h" 29 #include "core/dom/NodeListsNodeData.h"
30 #include "core/html/HTMLCollection.h" 30 #include "core/html/HTMLCollection.h"
31 #include "core/html/HTMLLegendElement.h" 31 #include "core/html/HTMLLegendElement.h"
32 #include "core/layout/LayoutFieldset.h" 32 #include "core/layout/LayoutFieldset.h"
33 #include "wtf/StdLibExtras.h" 33 #include "wtf/StdLibExtras.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 using namespace HTMLNames; 37 using namespace HTMLNames;
38 38
39 inline HTMLFieldSetElement::HTMLFieldSetElement(Document& document, 39 inline HTMLFieldSetElement::HTMLFieldSetElement(Document& document)
40 HTMLFormElement* form) 40 : HTMLFormControlElement(fieldsetTag, document) {}
41 : HTMLFormControlElement(fieldsetTag, document, form) {}
42 41
43 HTMLFieldSetElement* HTMLFieldSetElement::create(Document& document, 42 HTMLFieldSetElement* HTMLFieldSetElement::create(Document& document) {
44 HTMLFormElement* form) { 43 return new HTMLFieldSetElement(document);
45 return new HTMLFieldSetElement(document, form);
46 } 44 }
47 45
48 bool HTMLFieldSetElement::matchesValidityPseudoClasses() const { 46 bool HTMLFieldSetElement::matchesValidityPseudoClasses() const {
49 return true; 47 return true;
50 } 48 }
51 49
52 bool HTMLFieldSetElement::isValidElement() { 50 bool HTMLFieldSetElement::isValidElement() {
53 for (Element* element : *elements()) { 51 for (Element* element : *elements()) {
54 if (element->isFormControlElement()) { 52 if (element->isFormControlElement()) {
55 if (!toHTMLFormControlElement(element)->checkValidity( 53 if (!toHTMLFormControlElement(element)->checkValidity(
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 101
104 HTMLCollection* HTMLFieldSetElement::elements() { 102 HTMLCollection* HTMLFieldSetElement::elements() {
105 return ensureCachedCollection<HTMLCollection>(FormControls); 103 return ensureCachedCollection<HTMLCollection>(FormControls);
106 } 104 }
107 105
108 int HTMLFieldSetElement::tabIndex() const { 106 int HTMLFieldSetElement::tabIndex() const {
109 return HTMLElement::tabIndex(); 107 return HTMLElement::tabIndex();
110 } 108 }
111 109
112 } // namespace blink 110 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698