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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 FormAssociatedElement::insertedInto(insertionPoint); | 278 FormAssociatedElement::insertedInto(insertionPoint); |
279 fieldSetAncestorsSetNeedsValidityCheck(insertionPoint); | 279 fieldSetAncestorsSetNeedsValidityCheck(insertionPoint); |
280 | 280 |
281 // Trigger for elements outside of forms. | 281 // Trigger for elements outside of forms. |
282 if (!formOwner() && insertionPoint->inDocument()) | 282 if (!formOwner() && insertionPoint->inDocument()) |
283 document().didAssociateFormControl(this); | 283 document().didAssociateFormControl(this); |
284 | 284 |
285 return InsertionDone; | 285 return InsertionDone; |
286 } | 286 } |
287 | 287 |
288 void HTMLFormControlElement::removedFrom(ContainerNode* insertionPoint) | 288 void HTMLFormControlElement::removedFrom(ContainerNode* insertionPoint, Node* ne
xt) |
289 { | 289 { |
290 fieldSetAncestorsSetNeedsValidityCheck(insertionPoint); | 290 fieldSetAncestorsSetNeedsValidityCheck(insertionPoint); |
291 hideVisibleValidationMessage(); | 291 hideVisibleValidationMessage(); |
292 m_hasValidationMessage = false; | 292 m_hasValidationMessage = false; |
293 m_ancestorDisabledState = AncestorDisabledStateUnknown; | 293 m_ancestorDisabledState = AncestorDisabledStateUnknown; |
294 m_dataListAncestorState = Unknown; | 294 m_dataListAncestorState = Unknown; |
295 setNeedsWillValidateCheck(); | 295 setNeedsWillValidateCheck(); |
296 HTMLElement::removedFrom(insertionPoint); | 296 HTMLElement::removedFrom(insertionPoint, next); |
297 FormAssociatedElement::removedFrom(insertionPoint); | 297 FormAssociatedElement::removedFrom(insertionPoint, next); |
298 document().removeFormAssociation(this); | 298 document().removeFormAssociation(this); |
299 } | 299 } |
300 | 300 |
301 void HTMLFormControlElement::willChangeForm() | 301 void HTMLFormControlElement::willChangeForm() |
302 { | 302 { |
303 FormAssociatedElement::willChangeForm(); | 303 FormAssociatedElement::willChangeForm(); |
304 formOwnerSetNeedsValidityCheck(); | 304 formOwnerSetNeedsValidityCheck(); |
305 } | 305 } |
306 | 306 |
307 void HTMLFormControlElement::didChangeForm() | 307 void HTMLFormControlElement::didChangeForm() |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
664 dispatchFormControlChangeEvent(); | 664 dispatchFormControlChangeEvent(); |
665 } | 665 } |
666 | 666 |
667 void HTMLFormControlElement::copyNonAttributePropertiesFromElement(const Element
& source) | 667 void HTMLFormControlElement::copyNonAttributePropertiesFromElement(const Element
& source) |
668 { | 668 { |
669 HTMLElement::copyNonAttributePropertiesFromElement(source); | 669 HTMLElement::copyNonAttributePropertiesFromElement(source); |
670 setNeedsValidityCheck(); | 670 setNeedsValidityCheck(); |
671 } | 671 } |
672 | 672 |
673 } // namespace blink | 673 } // namespace blink |
OLD | NEW |