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, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) | 7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) |
8 * Copyright (C) 2010 Google Inc. All rights reserved. | 8 * Copyright (C) 2010 Google Inc. All rights reserved. |
9 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 9 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
10 * Copyright (C) 2012 Samsung Electronics. All rights reserved. | 10 * Copyright (C) 2012 Samsung Electronics. All rights reserved. |
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
833 return m_inputType->isFormDataAppendable() && m_inputType->appendFormData(en
coding, multipart); | 833 return m_inputType->isFormDataAppendable() && m_inputType->appendFormData(en
coding, multipart); |
834 } | 834 } |
835 | 835 |
836 String HTMLInputElement::resultForDialogSubmit() | 836 String HTMLInputElement::resultForDialogSubmit() |
837 { | 837 { |
838 return m_inputType->resultForDialogSubmit(); | 838 return m_inputType->resultForDialogSubmit(); |
839 } | 839 } |
840 | 840 |
841 void HTMLInputElement::resetImpl() | 841 void HTMLInputElement::resetImpl() |
842 { | 842 { |
843 if (m_inputType->storesValueSeparateFromAttribute()) | 843 if (m_inputType->storesValueSeparateFromAttribute()) { |
844 setValue(String()); | 844 setValue(String()); |
| 845 setNeedsValidityCheck(); |
| 846 } |
845 | 847 |
846 setChecked(hasAttribute(checkedAttr)); | 848 setChecked(hasAttribute(checkedAttr)); |
847 m_reflectsCheckedAttribute = true; | 849 m_reflectsCheckedAttribute = true; |
848 } | 850 } |
849 | 851 |
850 bool HTMLInputElement::isTextField() const | 852 bool HTMLInputElement::isTextField() const |
851 { | 853 { |
852 return m_inputType->isTextField(); | 854 return m_inputType->isTextField(); |
853 } | 855 } |
854 | 856 |
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1864 } | 1866 } |
1865 | 1867 |
1866 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) | 1868 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
1867 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() | 1869 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() |
1868 { | 1870 { |
1869 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); | 1871 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); |
1870 } | 1872 } |
1871 #endif | 1873 #endif |
1872 | 1874 |
1873 } // namespace | 1875 } // namespace |
OLD | NEW |