Chromium Code Reviews| 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 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 832 } | 832 } |
| 833 | 833 |
| 834 String HTMLInputElement::resultForDialogSubmit() | 834 String HTMLInputElement::resultForDialogSubmit() |
| 835 { | 835 { |
| 836 return m_inputType->resultForDialogSubmit(); | 836 return m_inputType->resultForDialogSubmit(); |
| 837 } | 837 } |
| 838 | 838 |
| 839 void HTMLInputElement::resetImpl() | 839 void HTMLInputElement::resetImpl() |
| 840 { | 840 { |
| 841 if (m_inputType->storesValueSeparateFromAttribute()) { | 841 if (m_inputType->storesValueSeparateFromAttribute()) { |
| 842 setValue(String()); | 842 setValue(defaultValue()); |
|
tkent
2014/10/29 00:28:29
This is a wrong fix.
Setting a null string to the
| |
| 843 setNeedsValidityCheck(); | 843 setNeedsValidityCheck(); |
| 844 } | 844 } |
| 845 | 845 |
| 846 setChecked(hasAttribute(checkedAttr)); | 846 setChecked(hasAttribute(checkedAttr)); |
| 847 m_reflectsCheckedAttribute = true; | 847 m_reflectsCheckedAttribute = true; |
| 848 } | 848 } |
| 849 | 849 |
| 850 bool HTMLInputElement::isTextField() const | 850 bool HTMLInputElement::isTextField() const |
| 851 { | 851 { |
| 852 return m_inputType->isTextField(); | 852 return m_inputType->isTextField(); |
| (...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1847 { | 1847 { |
| 1848 listAttributeTargetChanged(); | 1848 listAttributeTargetChanged(); |
| 1849 } | 1849 } |
| 1850 | 1850 |
| 1851 AXObject* HTMLInputElement::popupRootAXObject() | 1851 AXObject* HTMLInputElement::popupRootAXObject() |
| 1852 { | 1852 { |
| 1853 return m_inputTypeView->popupRootAXObject(); | 1853 return m_inputTypeView->popupRootAXObject(); |
| 1854 } | 1854 } |
| 1855 | 1855 |
| 1856 } // namespace | 1856 } // namespace |
| OLD | NEW |