| 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, 2008, 2009 Apple Inc. All rights reserv
ed. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
| 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 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 #endif | 552 #endif |
| 553 | 553 |
| 554 void HTMLFormElement::didAssociateByParser() | 554 void HTMLFormElement::didAssociateByParser() |
| 555 { | 555 { |
| 556 if (!m_didFinishParsingChildren) | 556 if (!m_didFinishParsingChildren) |
| 557 return; | 557 return; |
| 558 m_hasElementsAssociatedByParser = true; | 558 m_hasElementsAssociatedByParser = true; |
| 559 UseCounter::count(document(), UseCounter::FormAssociationByParser); | 559 UseCounter::count(document(), UseCounter::FormAssociationByParser); |
| 560 } | 560 } |
| 561 | 561 |
| 562 PassRefPtrWillBeRawPtr<HTMLCollection> HTMLFormElement::elements() | 562 PassRefPtrWillBeRawPtr<HTMLFormControlsCollection> HTMLFormElement::elements() |
| 563 { | 563 { |
| 564 return ensureCachedHTMLCollection(FormControls); | 564 return toHTMLFormControlsCollection(ensureCachedHTMLCollection(FormControls)
.get()); |
| 565 } | 565 } |
| 566 | 566 |
| 567 void HTMLFormElement::collectAssociatedElements(Node& root, FormAssociatedElemen
t::List& elements) const | 567 void HTMLFormElement::collectAssociatedElements(Node& root, FormAssociatedElemen
t::List& elements) const |
| 568 { | 568 { |
| 569 elements.clear(); | 569 elements.clear(); |
| 570 for (HTMLElement* element = Traversal<HTMLElement>::firstWithin(root); eleme
nt; element = Traversal<HTMLElement>::next(*element)) { | 570 for (HTMLElement* element = Traversal<HTMLElement>::firstWithin(root); eleme
nt; element = Traversal<HTMLElement>::next(*element)) { |
| 571 FormAssociatedElement* associatedElement = 0; | 571 FormAssociatedElement* associatedElement = 0; |
| 572 if (element->isFormControlElement()) | 572 if (element->isFormControlElement()) |
| 573 associatedElement = toHTMLFormControlElement(element); | 573 associatedElement = toHTMLFormControlElement(element); |
| 574 else if (isHTMLObjectElement(*element)) | 574 else if (isHTMLObjectElement(*element)) |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 798 } | 798 } |
| 799 | 799 |
| 800 void HTMLFormElement::setDemoted(bool demoted) | 800 void HTMLFormElement::setDemoted(bool demoted) |
| 801 { | 801 { |
| 802 if (demoted) | 802 if (demoted) |
| 803 UseCounter::count(document(), UseCounter::DemotedFormElement); | 803 UseCounter::count(document(), UseCounter::DemotedFormElement); |
| 804 m_wasDemoted = demoted; | 804 m_wasDemoted = demoted; |
| 805 } | 805 } |
| 806 | 806 |
| 807 } // namespace | 807 } // namespace |
| OLD | NEW |