| 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, 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 } | 181 } |
| 182 } | 182 } |
| 183 | 183 |
| 184 void HTMLFormControlElement::disabledAttributeChanged() | 184 void HTMLFormControlElement::disabledAttributeChanged() |
| 185 { | 185 { |
| 186 setNeedsWillValidateCheck(); | 186 setNeedsWillValidateCheck(); |
| 187 pseudoStateChanged(CSSSelector::PseudoDisabled); | 187 pseudoStateChanged(CSSSelector::PseudoDisabled); |
| 188 pseudoStateChanged(CSSSelector::PseudoEnabled); | 188 pseudoStateChanged(CSSSelector::PseudoEnabled); |
| 189 if (layoutObject()) | 189 if (layoutObject()) |
| 190 LayoutTheme::theme().controlStateChanged(*layoutObject(), EnabledControl
State); | 190 LayoutTheme::theme().controlStateChanged(*layoutObject(), EnabledControl
State); |
| 191 if (isDisabledFormControl() && treeScope().adjustedFocusedElement() == this)
{ | 191 if (isDisabledFormControl() && treeScopeOrDocument().adjustedFocusedElement(
) == this) { |
| 192 // We might want to call blur(), but it's dangerous to dispatch events | 192 // We might want to call blur(), but it's dangerous to dispatch events |
| 193 // here. | 193 // here. |
| 194 document().setNeedsFocusedElementCheck(); | 194 document().setNeedsFocusedElementCheck(); |
| 195 } | 195 } |
| 196 } | 196 } |
| 197 | 197 |
| 198 void HTMLFormControlElement::requiredAttributeChanged() | 198 void HTMLFormControlElement::requiredAttributeChanged() |
| 199 { | 199 { |
| 200 setNeedsValidityCheck(); | 200 setNeedsValidityCheck(); |
| 201 pseudoStateChanged(CSSSelector::PseudoRequired); | 201 pseudoStateChanged(CSSSelector::PseudoRequired); |
| (...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 dispatchFormControlChangeEvent(); | 658 dispatchFormControlChangeEvent(); |
| 659 } | 659 } |
| 660 | 660 |
| 661 void HTMLFormControlElement::copyNonAttributePropertiesFromElement(const Element
& source) | 661 void HTMLFormControlElement::copyNonAttributePropertiesFromElement(const Element
& source) |
| 662 { | 662 { |
| 663 HTMLElement::copyNonAttributePropertiesFromElement(source); | 663 HTMLElement::copyNonAttributePropertiesFromElement(source); |
| 664 setNeedsValidityCheck(); | 664 setNeedsValidityCheck(); |
| 665 } | 665 } |
| 666 | 666 |
| 667 } // namespace blink | 667 } // namespace blink |
| OLD | NEW |