| 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 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 801 // fall back to title attribute | 801 // fall back to title attribute |
| 802 if (alt.isNull()) | 802 if (alt.isNull()) |
| 803 alt = getAttribute(titleAttr); | 803 alt = getAttribute(titleAttr); |
| 804 if (alt.isNull()) | 804 if (alt.isNull()) |
| 805 alt = getAttribute(valueAttr); | 805 alt = getAttribute(valueAttr); |
| 806 if (alt.isEmpty()) | 806 if (alt.isEmpty()) |
| 807 alt = locale().queryString(blink::WebLocalizedString::InputElementAltTex
t); | 807 alt = locale().queryString(blink::WebLocalizedString::InputElementAltTex
t); |
| 808 return alt; | 808 return alt; |
| 809 } | 809 } |
| 810 | 810 |
| 811 bool HTMLInputElement::isSuccessfulSubmitButton() const | 811 bool HTMLInputElement::canBeSuccessfulSubmitButton() const |
| 812 { | 812 { |
| 813 // HTML spec says that buttons must have names to be considered successful. | 813 return m_inputType->canBeSuccessfulSubmitButton(); |
| 814 // However, other browsers do not impose this constraint. So we do not. | |
| 815 return !isDisabledFormControl() && m_inputType->canBeSuccessfulSubmitButton(
); | |
| 816 } | 814 } |
| 817 | 815 |
| 818 bool HTMLInputElement::isActivatedSubmit() const | 816 bool HTMLInputElement::isActivatedSubmit() const |
| 819 { | 817 { |
| 820 return m_isActivatedSubmit; | 818 return m_isActivatedSubmit; |
| 821 } | 819 } |
| 822 | 820 |
| 823 void HTMLInputElement::setActivatedSubmit(bool flag) | 821 void HTMLInputElement::setActivatedSubmit(bool flag) |
| 824 { | 822 { |
| 825 m_isActivatedSubmit = flag; | 823 m_isActivatedSubmit = flag; |
| (...skipping 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1860 } | 1858 } |
| 1861 | 1859 |
| 1862 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) | 1860 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
| 1863 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() | 1861 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() |
| 1864 { | 1862 { |
| 1865 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); | 1863 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); |
| 1866 } | 1864 } |
| 1867 #endif | 1865 #endif |
| 1868 | 1866 |
| 1869 } // namespace | 1867 } // namespace |
| OLD | NEW |