| 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 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1235 } | 1235 } |
| 1236 | 1236 |
| 1237 static inline bool isRFC2616TokenCharacter(UChar ch) | 1237 static inline bool isRFC2616TokenCharacter(UChar ch) |
| 1238 { | 1238 { |
| 1239 return isASCII(ch) && ch > ' ' && ch != '"' && ch != '(' && ch != ')' && ch
!= ',' && ch != '/' && (ch < ':' || ch > '@') && (ch < '[' || ch > ']') && ch !=
'{' && ch != '}' && ch != 0x7f; | 1239 return isASCII(ch) && ch > ' ' && ch != '"' && ch != '(' && ch != ')' && ch
!= ',' && ch != '/' && (ch < ':' || ch > '@') && (ch < '[' || ch > ']') && ch !=
'{' && ch != '}' && ch != 0x7f; |
| 1240 } | 1240 } |
| 1241 | 1241 |
| 1242 static bool isValidMIMEType(const String& type) | 1242 static bool isValidMIMEType(const String& type) |
| 1243 { | 1243 { |
| 1244 size_t slashPosition = type.find('/'); | 1244 size_t slashPosition = type.find('/'); |
| 1245 if (slashPosition == notFound || !slashPosition || slashPosition == type.len
gth() - 1) | 1245 if (slashPosition == kNotFound || !slashPosition || slashPosition == type.le
ngth() - 1) |
| 1246 return false; | 1246 return false; |
| 1247 for (size_t i = 0; i < type.length(); ++i) { | 1247 for (size_t i = 0; i < type.length(); ++i) { |
| 1248 if (!isRFC2616TokenCharacter(type[i]) && i != slashPosition) | 1248 if (!isRFC2616TokenCharacter(type[i]) && i != slashPosition) |
| 1249 return false; | 1249 return false; |
| 1250 } | 1250 } |
| 1251 return true; | 1251 return true; |
| 1252 } | 1252 } |
| 1253 | 1253 |
| 1254 static bool isValidFileExtension(const String& type) | 1254 static bool isValidFileExtension(const String& type) |
| 1255 { | 1255 { |
| (...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1884 } | 1884 } |
| 1885 | 1885 |
| 1886 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) | 1886 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
| 1887 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() | 1887 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() |
| 1888 { | 1888 { |
| 1889 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); | 1889 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); |
| 1890 } | 1890 } |
| 1891 #endif | 1891 #endif |
| 1892 | 1892 |
| 1893 } // namespace | 1893 } // namespace |
| OLD | NEW |