| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2010 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008, 2010 Apple Inc. All Rights Reserved. |
| 3 * Copyright (C) 2009 Torch Mobile, Inc. http://www.torchmobile.com/ | 3 * Copyright (C) 2009 Torch Mobile, Inc. http://www.torchmobile.com/ |
| 4 * Copyright (C) 2010 Google Inc. All Rights Reserved. | 4 * Copyright (C) 2010 Google Inc. All Rights Reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | 21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
| 22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
| 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #include "config.h" | 28 #include "config.h" |
| 29 #include "CSSPreloadScanner.h" | 29 #include "CSSPreloadScanner.h" |
| 30 | 30 |
| 31 #include "CachedResourceRequestInitiators.h" | |
| 32 #include "HTMLIdentifier.h" | 31 #include "HTMLIdentifier.h" |
| 33 #include "HTMLParserIdioms.h" | 32 #include "HTMLParserIdioms.h" |
| 33 #include "core/loader/cache/CachedResourceRequestInitiators.h" |
| 34 | 34 |
| 35 namespace WebCore { | 35 namespace WebCore { |
| 36 | 36 |
| 37 CSSPreloadScanner::CSSPreloadScanner() | 37 CSSPreloadScanner::CSSPreloadScanner() |
| 38 : m_state(Initial) | 38 : m_state(Initial) |
| 39 , m_requests(0) | 39 , m_requests(0) |
| 40 { | 40 { |
| 41 } | 41 } |
| 42 | 42 |
| 43 CSSPreloadScanner::~CSSPreloadScanner() | 43 CSSPreloadScanner::~CSSPreloadScanner() |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 m_state = Initial; | 222 m_state = Initial; |
| 223 } else if (equalIgnoringCase("charset", m_rule.characters(), m_rule.length()
)) | 223 } else if (equalIgnoringCase("charset", m_rule.characters(), m_rule.length()
)) |
| 224 m_state = Initial; | 224 m_state = Initial; |
| 225 else | 225 else |
| 226 m_state = DoneParsingImportRules; | 226 m_state = DoneParsingImportRules; |
| 227 m_rule.clear(); | 227 m_rule.clear(); |
| 228 m_ruleValue.clear(); | 228 m_ruleValue.clear(); |
| 229 } | 229 } |
| 230 | 230 |
| 231 } | 231 } |
| OLD | NEW |