| 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 m_ancestorDisabledState = AncestorDisabledStateUnknown; | 240 m_ancestorDisabledState = AncestorDisabledStateUnknown; |
| 241 m_dataListAncestorState = Unknown; | 241 m_dataListAncestorState = Unknown; |
| 242 setNeedsWillValidateCheck(); | 242 setNeedsWillValidateCheck(); |
| 243 HTMLElement::insertedInto(insertionPoint); | 243 HTMLElement::insertedInto(insertionPoint); |
| 244 FormAssociatedElement::insertedInto(insertionPoint); | 244 FormAssociatedElement::insertedInto(insertionPoint); |
| 245 return InsertionDone; | 245 return InsertionDone; |
| 246 } | 246 } |
| 247 | 247 |
| 248 void HTMLFormControlElement::removedFrom(ContainerNode* insertionPoint) | 248 void HTMLFormControlElement::removedFrom(ContainerNode* insertionPoint) |
| 249 { | 249 { |
| 250 hideVisibleValidationMessage(); |
| 250 m_validationMessage = nullptr; | 251 m_validationMessage = nullptr; |
| 251 m_ancestorDisabledState = AncestorDisabledStateUnknown; | 252 m_ancestorDisabledState = AncestorDisabledStateUnknown; |
| 252 m_dataListAncestorState = Unknown; | 253 m_dataListAncestorState = Unknown; |
| 253 HTMLElement::removedFrom(insertionPoint); | 254 HTMLElement::removedFrom(insertionPoint); |
| 254 FormAssociatedElement::removedFrom(insertionPoint); | 255 FormAssociatedElement::removedFrom(insertionPoint); |
| 255 } | 256 } |
| 256 | 257 |
| 257 void HTMLFormControlElement::setChangedSinceLastFormControlChangeEvent(bool chan
ged) | 258 void HTMLFormControlElement::setChangedSinceLastFormControlChangeEvent(bool chan
ged) |
| 258 { | 259 { |
| 259 m_wasChangedSinceLastFormControlChangeEvent = changed; | 260 m_wasChangedSinceLastFormControlChangeEvent = changed; |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 | 497 |
| 497 void HTMLFormControlElement::setFocus(bool flag) | 498 void HTMLFormControlElement::setFocus(bool flag) |
| 498 { | 499 { |
| 499 LabelableElement::setFocus(flag); | 500 LabelableElement::setFocus(flag); |
| 500 | 501 |
| 501 if (!flag && wasChangedSinceLastFormControlChangeEvent()) | 502 if (!flag && wasChangedSinceLastFormControlChangeEvent()) |
| 502 dispatchFormControlChangeEvent(); | 503 dispatchFormControlChangeEvent(); |
| 503 } | 504 } |
| 504 | 505 |
| 505 } // namespace Webcore | 506 } // namespace Webcore |
| OLD | NEW |