| 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 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 hasInvalidControls = true; | 656 hasInvalidControls = true; |
| 657 } | 657 } |
| 658 } | 658 } |
| 659 return hasInvalidControls; | 659 return hasInvalidControls; |
| 660 } | 660 } |
| 661 | 661 |
| 662 HTMLFormControlElement* HTMLFormElement::elementForAlias(const AtomicString& ali
as) | 662 HTMLFormControlElement* HTMLFormElement::elementForAlias(const AtomicString& ali
as) |
| 663 { | 663 { |
| 664 if (alias.isEmpty() || !m_elementAliases) | 664 if (alias.isEmpty() || !m_elementAliases) |
| 665 return 0; | 665 return 0; |
| 666 return m_elementAliases->get(alias.impl()).get(); | 666 return m_elementAliases->get(alias.impl()); |
| 667 } | 667 } |
| 668 | 668 |
| 669 void HTMLFormElement::addElementAlias(HTMLFormControlElement* element, const Ato
micString& alias) | 669 void HTMLFormElement::addElementAlias(HTMLFormControlElement* element, const Ato
micString& alias) |
| 670 { | 670 { |
| 671 if (alias.isEmpty()) | 671 if (alias.isEmpty()) |
| 672 return; | 672 return; |
| 673 if (!m_elementAliases) | 673 if (!m_elementAliases) |
| 674 m_elementAliases = adoptPtr(new AliasMap); | 674 m_elementAliases = adoptPtr(new AliasMap); |
| 675 m_elementAliases->set(alias.impl(), element); | 675 m_elementAliases->set(alias.impl(), element); |
| 676 } | 676 } |
| (...skipping 25 matching lines...) Expand all Loading... |
| 702 document()->formController()->restoreControlStateIn(*this); | 702 document()->formController()->restoreControlStateIn(*this); |
| 703 } | 703 } |
| 704 | 704 |
| 705 void HTMLFormElement::copyNonAttributePropertiesFromElement(const Element& sourc
e) | 705 void HTMLFormElement::copyNonAttributePropertiesFromElement(const Element& sourc
e) |
| 706 { | 706 { |
| 707 m_wasDemoted = static_cast<const HTMLFormElement&>(source).m_wasDemoted; | 707 m_wasDemoted = static_cast<const HTMLFormElement&>(source).m_wasDemoted; |
| 708 HTMLElement::copyNonAttributePropertiesFromElement(source); | 708 HTMLElement::copyNonAttributePropertiesFromElement(source); |
| 709 } | 709 } |
| 710 | 710 |
| 711 } // namespace | 711 } // namespace |
| OLD | NEW |