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 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1096 if (!valueChanged) | 1096 if (!valueChanged) |
1097 return; | 1097 return; |
1098 | 1098 |
1099 notifyFormStateChanged(); | 1099 notifyFormStateChanged(); |
1100 } | 1100 } |
1101 | 1101 |
1102 void HTMLInputElement::setValueInternal(const String& sanitizedValue, TextFieldE
ventBehavior eventBehavior) | 1102 void HTMLInputElement::setValueInternal(const String& sanitizedValue, TextFieldE
ventBehavior eventBehavior) |
1103 { | 1103 { |
1104 m_valueIfDirty = sanitizedValue; | 1104 m_valueIfDirty = sanitizedValue; |
1105 setNeedsValidityCheck(); | 1105 setNeedsValidityCheck(); |
| 1106 if (m_inputType->isSteppable()) { |
| 1107 pseudoStateChanged(CSSSelector::PseudoInRange); |
| 1108 pseudoStateChanged(CSSSelector::PseudoOutOfRange); |
| 1109 } |
1106 if (document().focusedElement() == this) | 1110 if (document().focusedElement() == this) |
1107 document().frameHost()->chromeClient().didUpdateTextOfFocusedElementByNo
nUserInput(); | 1111 document().frameHost()->chromeClient().didUpdateTextOfFocusedElementByNo
nUserInput(); |
1108 } | 1112 } |
1109 | 1113 |
1110 void HTMLInputElement::updateView() | 1114 void HTMLInputElement::updateView() |
1111 { | 1115 { |
1112 m_inputTypeView->updateView(); | 1116 m_inputTypeView->updateView(); |
1113 } | 1117 } |
1114 | 1118 |
1115 double HTMLInputElement::valueAsDate(bool& isNull) const | 1119 double HTMLInputElement::valueAsDate(bool& isNull) const |
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1947 void HTMLInputElement::ensurePrimaryContent() | 1951 void HTMLInputElement::ensurePrimaryContent() |
1948 { | 1952 { |
1949 m_inputTypeView->ensurePrimaryContent(); | 1953 m_inputTypeView->ensurePrimaryContent(); |
1950 } | 1954 } |
1951 | 1955 |
1952 bool HTMLInputElement::hasFallbackContent() const | 1956 bool HTMLInputElement::hasFallbackContent() const |
1953 { | 1957 { |
1954 return m_inputTypeView->hasFallbackContent(); | 1958 return m_inputTypeView->hasFallbackContent(); |
1955 } | 1959 } |
1956 } // namespace | 1960 } // namespace |
OLD | NEW |