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 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
693 if (value.isEmpty()) | 693 if (value.isEmpty()) |
694 m_autocomplete = Uninitialized; | 694 m_autocomplete = Uninitialized; |
695 else | 695 else |
696 m_autocomplete = On; | 696 m_autocomplete = On; |
697 } | 697 } |
698 } else if (name == typeAttr) { | 698 } else if (name == typeAttr) { |
699 updateType(); | 699 updateType(); |
700 } else if (name == valueAttr) { | 700 } else if (name == valueAttr) { |
701 // We only need to setChanged if the form is looking at the default valu
e right now. | 701 // We only need to setChanged if the form is looking at the default valu
e right now. |
702 if (!hasDirtyValue()) { | 702 if (!hasDirtyValue()) { |
703 updatePlaceholderVisibility(false); | 703 updatePlaceholderVisibility(); |
704 setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing:
:fromAttribute(valueAttr)); | 704 setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing:
:fromAttribute(valueAttr)); |
705 } | 705 } |
706 m_needsToUpdateViewValue = true; | 706 m_needsToUpdateViewValue = true; |
707 setNeedsValidityCheck(); | 707 setNeedsValidityCheck(); |
708 m_valueAttributeWasUpdatedAfterParsing = !m_parsingInProgress; | 708 m_valueAttributeWasUpdatedAfterParsing = !m_parsingInProgress; |
709 m_inputType->warnIfValueIsInvalidAndElementIsVisible(value); | 709 m_inputType->warnIfValueIsInvalidAndElementIsVisible(value); |
710 m_inputTypeView->valueAttributeChanged(); | 710 m_inputTypeView->valueAttributeChanged(); |
711 } else if (name == checkedAttr) { | 711 } else if (name == checkedAttr) { |
712 // Another radio button in the same group might be checked by state | 712 // Another radio button in the same group might be checked by state |
713 // restore. We shouldn't call setChecked() even if this has the checked | 713 // restore. We shouldn't call setChecked() even if this has the checked |
(...skipping 1211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1925 void HTMLInputElement::ensurePrimaryContent() | 1925 void HTMLInputElement::ensurePrimaryContent() |
1926 { | 1926 { |
1927 m_inputTypeView->ensurePrimaryContent(); | 1927 m_inputTypeView->ensurePrimaryContent(); |
1928 } | 1928 } |
1929 | 1929 |
1930 bool HTMLInputElement::hasFallbackContent() const | 1930 bool HTMLInputElement::hasFallbackContent() const |
1931 { | 1931 { |
1932 return m_inputTypeView->hasFallbackContent(); | 1932 return m_inputTypeView->hasFallbackContent(); |
1933 } | 1933 } |
1934 } // namespace | 1934 } // namespace |
OLD | NEW |