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 | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights |
6 * reserved. | 6 * reserved. |
7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
764 if (named_items.size() && named_items.front() != element_from_past) { | 764 if (named_items.size() && named_items.front() != element_from_past) { |
765 AddToPastNamesMap(named_items.front().Get(), name); | 765 AddToPastNamesMap(named_items.front().Get(), name); |
766 } else if (element_from_past && named_items.IsEmpty()) { | 766 } else if (element_from_past && named_items.IsEmpty()) { |
767 named_items.push_back(element_from_past); | 767 named_items.push_back(element_from_past); |
768 UseCounter::Count(GetDocument(), | 768 UseCounter::Count(GetDocument(), |
769 UseCounter::kFormNameAccessForPastNamesMap); | 769 UseCounter::kFormNameAccessForPastNamesMap); |
770 } | 770 } |
771 } | 771 } |
772 | 772 |
773 bool HTMLFormElement::ShouldAutocomplete() const { | 773 bool HTMLFormElement::ShouldAutocomplete() const { |
774 return !EqualIgnoringCase(FastGetAttribute(autocompleteAttr), "off"); | 774 return !DeprecatedEqualIgnoringCase(FastGetAttribute(autocompleteAttr), |
| 775 "off"); |
775 } | 776 } |
776 | 777 |
777 void HTMLFormElement::FinishParsingChildren() { | 778 void HTMLFormElement::FinishParsingChildren() { |
778 HTMLElement::FinishParsingChildren(); | 779 HTMLElement::FinishParsingChildren(); |
779 GetDocument().GetFormController().RestoreControlStateIn(*this); | 780 GetDocument().GetFormController().RestoreControlStateIn(*this); |
780 did_finish_parsing_children_ = true; | 781 did_finish_parsing_children_ = true; |
781 } | 782 } |
782 | 783 |
783 void HTMLFormElement::CopyNonAttributePropertiesFromElement( | 784 void HTMLFormElement::CopyNonAttributePropertiesFromElement( |
784 const Element& source) { | 785 const Element& source) { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 for (const auto& control : ListedElements()) { | 840 for (const auto& control : ListedElements()) { |
840 if (!control->IsFormControlElement()) | 841 if (!control->IsFormControlElement()) |
841 continue; | 842 continue; |
842 if (ToHTMLFormControlElement(control)->CanBeSuccessfulSubmitButton()) | 843 if (ToHTMLFormControlElement(control)->CanBeSuccessfulSubmitButton()) |
843 ToHTMLFormControlElement(control)->PseudoStateChanged( | 844 ToHTMLFormControlElement(control)->PseudoStateChanged( |
844 CSSSelector::kPseudoDefault); | 845 CSSSelector::kPseudoDefault); |
845 } | 846 } |
846 } | 847 } |
847 | 848 |
848 } // namespace blink | 849 } // namespace blink |
OLD | NEW |