| 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 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 m_associatedElementsAreDirty = true; | 505 m_associatedElementsAreDirty = true; |
| 506 m_associatedElements.clear(); | 506 m_associatedElements.clear(); |
| 507 removeFromPastNamesMap(toHTMLElement(e)); | 507 removeFromPastNamesMap(toHTMLElement(e)); |
| 508 } | 508 } |
| 509 | 509 |
| 510 bool HTMLFormElement::isURLAttribute(const Attribute& attribute) const | 510 bool HTMLFormElement::isURLAttribute(const Attribute& attribute) const |
| 511 { | 511 { |
| 512 return attribute.name() == actionAttr || HTMLElement::isURLAttribute(attribu
te); | 512 return attribute.name() == actionAttr || HTMLElement::isURLAttribute(attribu
te); |
| 513 } | 513 } |
| 514 | 514 |
| 515 bool HTMLFormElement::hasLegalLinkAttribute(const QualifiedName& name) const |
| 516 { |
| 517 return name == actionAttr || HTMLElement::hasLegalLinkAttribute(name); |
| 518 } |
| 519 |
| 515 void HTMLFormElement::associate(HTMLImageElement& e) | 520 void HTMLFormElement::associate(HTMLImageElement& e) |
| 516 { | 521 { |
| 517 m_imageElementsAreDirty = true; | 522 m_imageElementsAreDirty = true; |
| 518 m_imageElements.clear(); | 523 m_imageElements.clear(); |
| 519 } | 524 } |
| 520 | 525 |
| 521 void HTMLFormElement::disassociate(HTMLImageElement& e) | 526 void HTMLFormElement::disassociate(HTMLImageElement& e) |
| 522 { | 527 { |
| 523 m_imageElementsAreDirty = true; | 528 m_imageElementsAreDirty = true; |
| 524 m_imageElements.clear(); | 529 m_imageElements.clear(); |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 } | 788 } |
| 784 | 789 |
| 785 void HTMLFormElement::setDemoted(bool demoted) | 790 void HTMLFormElement::setDemoted(bool demoted) |
| 786 { | 791 { |
| 787 if (demoted) | 792 if (demoted) |
| 788 UseCounter::count(document(), UseCounter::DemotedFormElement); | 793 UseCounter::count(document(), UseCounter::DemotedFormElement); |
| 789 m_wasDemoted = demoted; | 794 m_wasDemoted = demoted; |
| 790 } | 795 } |
| 791 | 796 |
| 792 } // namespace | 797 } // namespace |
| OLD | NEW |