| OLD | NEW |
| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 return false; | 74 return false; |
| 75 } | 75 } |
| 76 | 76 |
| 77 void HTMLFieldSetElement::invalidateDisabledStateUnder(Element& base) { | 77 void HTMLFieldSetElement::invalidateDisabledStateUnder(Element& base) { |
| 78 for (HTMLFormControlElement& element : | 78 for (HTMLFormControlElement& element : |
| 79 Traversal<HTMLFormControlElement>::descendantsOf(base)) | 79 Traversal<HTMLFormControlElement>::descendantsOf(base)) |
| 80 element.ancestorDisabledStateWasChanged(); | 80 element.ancestorDisabledStateWasChanged(); |
| 81 } | 81 } |
| 82 | 82 |
| 83 void HTMLFieldSetElement::disabledAttributeChanged() { | 83 void HTMLFieldSetElement::disabledAttributeChanged() { |
| 84 // This element must be updated before the style of nodes in its subtree gets
recalculated. | 84 // This element must be updated before the style of nodes in its subtree gets |
| 85 // recalculated. |
| 85 HTMLFormControlElement::disabledAttributeChanged(); | 86 HTMLFormControlElement::disabledAttributeChanged(); |
| 86 invalidateDisabledStateUnder(*this); | 87 invalidateDisabledStateUnder(*this); |
| 87 } | 88 } |
| 88 | 89 |
| 89 void HTMLFieldSetElement::childrenChanged(const ChildrenChange& change) { | 90 void HTMLFieldSetElement::childrenChanged(const ChildrenChange& change) { |
| 90 HTMLFormControlElement::childrenChanged(change); | 91 HTMLFormControlElement::childrenChanged(change); |
| 91 for (HTMLLegendElement& legend : | 92 for (HTMLLegendElement& legend : |
| 92 Traversal<HTMLLegendElement>::childrenOf(*this)) | 93 Traversal<HTMLLegendElement>::childrenOf(*this)) |
| 93 invalidateDisabledStateUnder(legend); | 94 invalidateDisabledStateUnder(legend); |
| 94 } | 95 } |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 const { | 141 const { |
| 141 refreshElementsIfNeeded(); | 142 refreshElementsIfNeeded(); |
| 142 return m_associatedElements; | 143 return m_associatedElements; |
| 143 } | 144 } |
| 144 | 145 |
| 145 short HTMLFieldSetElement::tabIndex() const { | 146 short HTMLFieldSetElement::tabIndex() const { |
| 146 return HTMLElement::tabIndex(); | 147 return HTMLElement::tabIndex(); |
| 147 } | 148 } |
| 148 | 149 |
| 149 } // namespace blink | 150 } // namespace blink |
| OLD | NEW |