| 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 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1221 const QualifiedName& HTMLInputElement::subResourceAttributeName() const | 1221 const QualifiedName& HTMLInputElement::subResourceAttributeName() const |
| 1222 { | 1222 { |
| 1223 return m_inputType->subResourceAttributeName(); | 1223 return m_inputType->subResourceAttributeName(); |
| 1224 } | 1224 } |
| 1225 | 1225 |
| 1226 const AtomicString& HTMLInputElement::defaultValue() const | 1226 const AtomicString& HTMLInputElement::defaultValue() const |
| 1227 { | 1227 { |
| 1228 return fastGetAttribute(valueAttr); | 1228 return fastGetAttribute(valueAttr); |
| 1229 } | 1229 } |
| 1230 | 1230 |
| 1231 void HTMLInputElement::setDefaultValue(const AtomicString& value) | |
| 1232 { | |
| 1233 setAttribute(valueAttr, value); | |
| 1234 } | |
| 1235 | |
| 1236 static inline bool isRFC2616TokenCharacter(UChar ch) | 1231 static inline bool isRFC2616TokenCharacter(UChar ch) |
| 1237 { | 1232 { |
| 1238 return isASCII(ch) && ch > ' ' && ch != '"' && ch != '(' && ch != ')' && ch
!= ',' && ch != '/' && (ch < ':' || ch > '@') && (ch < '[' || ch > ']') && ch !=
'{' && ch != '}' && ch != 0x7f; | 1233 return isASCII(ch) && ch > ' ' && ch != '"' && ch != '(' && ch != ')' && ch
!= ',' && ch != '/' && (ch < ':' || ch > '@') && (ch < '[' || ch > ']') && ch !=
'{' && ch != '}' && ch != 0x7f; |
| 1239 } | 1234 } |
| 1240 | 1235 |
| 1241 static bool isValidMIMEType(const String& type) | 1236 static bool isValidMIMEType(const String& type) |
| 1242 { | 1237 { |
| 1243 size_t slashPosition = type.find('/'); | 1238 size_t slashPosition = type.find('/'); |
| 1244 if (slashPosition == kNotFound || !slashPosition || slashPosition == type.le
ngth() - 1) | 1239 if (slashPosition == kNotFound || !slashPosition || slashPosition == type.le
ngth() - 1) |
| 1245 return false; | 1240 return false; |
| (...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1884 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); | 1879 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); |
| 1885 } | 1880 } |
| 1886 #endif | 1881 #endif |
| 1887 | 1882 |
| 1888 bool HTMLInputElement::shouldDispatchFormControlChangeEvent(String& oldValue, St
ring& newValue) | 1883 bool HTMLInputElement::shouldDispatchFormControlChangeEvent(String& oldValue, St
ring& newValue) |
| 1889 { | 1884 { |
| 1890 return m_inputType->shouldDispatchFormControlChangeEvent(oldValue, newValue)
; | 1885 return m_inputType->shouldDispatchFormControlChangeEvent(oldValue, newValue)
; |
| 1891 } | 1886 } |
| 1892 | 1887 |
| 1893 } // namespace | 1888 } // namespace |
| OLD | NEW |