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 | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
6 * rights reserved. | 6 * rights reserved. |
7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
8 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) | 8 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) |
9 * Copyright (C) 2010 Google Inc. All rights reserved. | 9 * Copyright (C) 2010 Google Inc. All rights reserved. |
10 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. | 10 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. |
(...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1108 void HTMLInputElement::setNonAttributeValue(const String& sanitizedValue) { | 1108 void HTMLInputElement::setNonAttributeValue(const String& sanitizedValue) { |
1109 // This is a common code for ValueMode::kValue. | 1109 // This is a common code for ValueMode::kValue. |
1110 DCHECK_EQ(m_inputType->valueMode(), ValueMode::kValue); | 1110 DCHECK_EQ(m_inputType->valueMode(), ValueMode::kValue); |
1111 m_nonAttributeValue = sanitizedValue; | 1111 m_nonAttributeValue = sanitizedValue; |
1112 m_hasDirtyValue = true; | 1112 m_hasDirtyValue = true; |
1113 setNeedsValidityCheck(); | 1113 setNeedsValidityCheck(); |
1114 if (m_inputType->isSteppable()) { | 1114 if (m_inputType->isSteppable()) { |
1115 pseudoStateChanged(CSSSelector::PseudoInRange); | 1115 pseudoStateChanged(CSSSelector::PseudoInRange); |
1116 pseudoStateChanged(CSSSelector::PseudoOutOfRange); | 1116 pseudoStateChanged(CSSSelector::PseudoOutOfRange); |
1117 } | 1117 } |
1118 if (document().focusedElement() == this) | |
1119 document() | |
1120 .frameHost() | |
1121 ->chromeClient() | |
1122 .didUpdateTextOfFocusedElementByNonUserInput(*document().frame()); | |
1123 } | 1118 } |
1124 | 1119 |
1125 void HTMLInputElement::setNonDirtyValue(const String& newValue) { | 1120 void HTMLInputElement::setNonDirtyValue(const String& newValue) { |
1126 setValue(newValue); | 1121 setValue(newValue); |
1127 m_hasDirtyValue = false; | 1122 m_hasDirtyValue = false; |
1128 } | 1123 } |
1129 | 1124 |
1130 bool HTMLInputElement::hasDirtyValue() const { | 1125 bool HTMLInputElement::hasDirtyValue() const { |
1131 return m_hasDirtyValue; | 1126 return m_hasDirtyValue; |
1132 } | 1127 } |
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1891 | 1886 |
1892 bool HTMLInputElement::hasFallbackContent() const { | 1887 bool HTMLInputElement::hasFallbackContent() const { |
1893 return m_inputTypeView->hasFallbackContent(); | 1888 return m_inputTypeView->hasFallbackContent(); |
1894 } | 1889 } |
1895 | 1890 |
1896 void HTMLInputElement::setFilesFromPaths(const Vector<String>& paths) { | 1891 void HTMLInputElement::setFilesFromPaths(const Vector<String>& paths) { |
1897 return m_inputType->setFilesFromPaths(paths); | 1892 return m_inputType->setFilesFromPaths(paths); |
1898 } | 1893 } |
1899 | 1894 |
1900 } // namespace blink | 1895 } // namespace blink |
OLD | NEW |