OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 28 matching lines...) Expand all Loading... |
39 LinkRelAttribute::LinkRelAttribute(const String& rel) | 39 LinkRelAttribute::LinkRelAttribute(const String& rel) |
40 : m_iconType(InvalidIcon) | 40 : m_iconType(InvalidIcon) |
41 , m_isStyleSheet(false) | 41 , m_isStyleSheet(false) |
42 , m_isAlternate(false) | 42 , m_isAlternate(false) |
43 , m_isDNSPrefetch(false) | 43 , m_isDNSPrefetch(false) |
44 , m_isLinkPrefetch(false) | 44 , m_isLinkPrefetch(false) |
45 , m_isLinkSubresource(false) | 45 , m_isLinkSubresource(false) |
46 , m_isLinkPrerender(false) | 46 , m_isLinkPrerender(false) |
47 , m_isLinkNext(false) | 47 , m_isLinkNext(false) |
48 , m_isImport(false) | 48 , m_isImport(false) |
| 49 , m_isManifest(false) |
49 { | 50 { |
50 if (rel.isEmpty()) | 51 if (rel.isEmpty()) |
51 return; | 52 return; |
52 String relCopy = rel; | 53 String relCopy = rel; |
53 relCopy.replace('\n', ' '); | 54 relCopy.replace('\n', ' '); |
54 Vector<String> list; | 55 Vector<String> list; |
55 relCopy.split(' ', list); | 56 relCopy.split(' ', list); |
56 Vector<String>::const_iterator end = list.end(); | 57 Vector<String>::const_iterator end = list.end(); |
57 for (Vector<String>::const_iterator it = list.begin(); it != end; ++it) { | 58 for (Vector<String>::const_iterator it = list.begin(); it != end; ++it) { |
58 if (equalIgnoringCase(*it, "stylesheet")) { | 59 if (equalIgnoringCase(*it, "stylesheet")) { |
(...skipping 18 matching lines...) Expand all Loading... |
77 } else if (equalIgnoringCase(*it, "prerender")) { | 78 } else if (equalIgnoringCase(*it, "prerender")) { |
78 m_isLinkPrerender = true; | 79 m_isLinkPrerender = true; |
79 } else if (equalIgnoringCase(*it, "next")) { | 80 } else if (equalIgnoringCase(*it, "next")) { |
80 m_isLinkNext = true; | 81 m_isLinkNext = true; |
81 } else if (equalIgnoringCase(*it, "apple-touch-icon")) { | 82 } else if (equalIgnoringCase(*it, "apple-touch-icon")) { |
82 if (RuntimeEnabledFeatures::touchIconLoadingEnabled()) | 83 if (RuntimeEnabledFeatures::touchIconLoadingEnabled()) |
83 m_iconType = TouchIcon; | 84 m_iconType = TouchIcon; |
84 } else if (equalIgnoringCase(*it, "apple-touch-icon-precomposed")) { | 85 } else if (equalIgnoringCase(*it, "apple-touch-icon-precomposed")) { |
85 if (RuntimeEnabledFeatures::touchIconLoadingEnabled()) | 86 if (RuntimeEnabledFeatures::touchIconLoadingEnabled()) |
86 m_iconType = TouchPrecomposedIcon; | 87 m_iconType = TouchPrecomposedIcon; |
| 88 } else if (equalIgnoringCase(*it, "manifest")) { |
| 89 m_isManifest = true; |
87 } | 90 } |
88 } | 91 } |
89 } | 92 } |
90 | 93 |
91 } | 94 } |
OLD | NEW |