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

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

Issue 420193007: Use new Traversal<> API more in the code base (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Take feedback into consideration Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/shadow/ShadowRoot.cpp ('k') | Source/core/html/HTMLLabelElement.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, 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 void HTMLFieldSetElement::trace(Visitor* visitor) 53 void HTMLFieldSetElement::trace(Visitor* visitor)
54 { 54 {
55 #if ENABLE(OILPAN) 55 #if ENABLE(OILPAN)
56 visitor->trace(m_associatedElements); 56 visitor->trace(m_associatedElements);
57 #endif 57 #endif
58 HTMLFormControlElement::trace(visitor); 58 HTMLFormControlElement::trace(visitor);
59 } 59 }
60 60
61 void HTMLFieldSetElement::invalidateDisabledStateUnder(Element& base) 61 void HTMLFieldSetElement::invalidateDisabledStateUnder(Element& base)
62 { 62 {
63 for (Element* element = ElementTraversal::firstWithin(base); element; elemen t = ElementTraversal::next(*element, &base)) { 63 for (HTMLFormControlElement* element = Traversal<HTMLFormControlElement>::fi rstWithin(base); element; element = Traversal<HTMLFormControlElement>::next(*ele ment, &base))
64 if (element->isFormControlElement()) 64 element->ancestorDisabledStateWasChanged();
65 toHTMLFormControlElement(element)->ancestorDisabledStateWasChanged() ;
66 }
67 } 65 }
68 66
69 void HTMLFieldSetElement::disabledAttributeChanged() 67 void HTMLFieldSetElement::disabledAttributeChanged()
70 { 68 {
71 // This element must be updated before the style of nodes in its subtree get s recalculated. 69 // This element must be updated before the style of nodes in its subtree get s recalculated.
72 HTMLFormControlElement::disabledAttributeChanged(); 70 HTMLFormControlElement::disabledAttributeChanged();
73 invalidateDisabledStateUnder(*this); 71 invalidateDisabledStateUnder(*this);
74 } 72 }
75 73
76 void HTMLFieldSetElement::childrenChanged(const ChildrenChange& change) 74 void HTMLFieldSetElement::childrenChanged(const ChildrenChange& change)
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 } 127 }
130 } 128 }
131 129
132 const FormAssociatedElement::List& HTMLFieldSetElement::associatedElements() con st 130 const FormAssociatedElement::List& HTMLFieldSetElement::associatedElements() con st
133 { 131 {
134 refreshElementsIfNeeded(); 132 refreshElementsIfNeeded();
135 return m_associatedElements; 133 return m_associatedElements;
136 } 134 }
137 135
138 } // namespace 136 } // namespace
OLDNEW
« no previous file with comments | « Source/core/dom/shadow/ShadowRoot.cpp ('k') | Source/core/html/HTMLLabelElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698