| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 #if ENABLE(ASSERT) | 71 #if ENABLE(ASSERT) |
| 72 // Recalculate m_willValidate and m_isValid for the vtbl change in order to | 72 // Recalculate m_willValidate and m_isValid for the vtbl change in order to |
| 73 // avoid assertion failures in isValidElement() called in setForm(0). | 73 // avoid assertion failures in isValidElement() called in setForm(0). |
| 74 setNeedsWillValidateCheck(); | 74 setNeedsWillValidateCheck(); |
| 75 setNeedsValidityCheck(); | 75 setNeedsValidityCheck(); |
| 76 #endif | 76 #endif |
| 77 setForm(0); | 77 setForm(0); |
| 78 #endif | 78 #endif |
| 79 } | 79 } |
| 80 | 80 |
| 81 void HTMLFormControlElement::trace(Visitor* visitor) | 81 DEFINE_TRACE(HTMLFormControlElement) |
| 82 { | 82 { |
| 83 FormAssociatedElement::trace(visitor); | 83 FormAssociatedElement::trace(visitor); |
| 84 LabelableElement::trace(visitor); | 84 LabelableElement::trace(visitor); |
| 85 } | 85 } |
| 86 | 86 |
| 87 String HTMLFormControlElement::formEnctype() const | 87 String HTMLFormControlElement::formEnctype() const |
| 88 { | 88 { |
| 89 const AtomicString& formEnctypeAttr = fastGetAttribute(formenctypeAttr); | 89 const AtomicString& formEnctypeAttr = fastGetAttribute(formenctypeAttr); |
| 90 if (formEnctypeAttr.isNull()) | 90 if (formEnctypeAttr.isNull()) |
| 91 return emptyString(); | 91 return emptyString(); |
| (...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 628 | 628 |
| 629 void HTMLFormControlElement::setFocus(bool flag) | 629 void HTMLFormControlElement::setFocus(bool flag) |
| 630 { | 630 { |
| 631 LabelableElement::setFocus(flag); | 631 LabelableElement::setFocus(flag); |
| 632 | 632 |
| 633 if (!flag && wasChangedSinceLastFormControlChangeEvent()) | 633 if (!flag && wasChangedSinceLastFormControlChangeEvent()) |
| 634 dispatchFormControlChangeEvent(); | 634 dispatchFormControlChangeEvent(); |
| 635 } | 635 } |
| 636 | 636 |
| 637 } // namespace blink | 637 } // namespace blink |
| OLD | NEW |