| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 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 17 matching lines...) Expand all Loading... |
| 28 #include "config.h" | 28 #include "config.h" |
| 29 #include "core/html/parser/HTMLPreloadScanner.h" | 29 #include "core/html/parser/HTMLPreloadScanner.h" |
| 30 | 30 |
| 31 #include "HTMLNames.h" | 31 #include "HTMLNames.h" |
| 32 #include "InputTypeNames.h" | 32 #include "InputTypeNames.h" |
| 33 #include "RuntimeEnabledFeatures.h" | 33 #include "RuntimeEnabledFeatures.h" |
| 34 #include "core/html/LinkRelAttribute.h" | 34 #include "core/html/LinkRelAttribute.h" |
| 35 #include "core/html/parser/HTMLParserIdioms.h" | 35 #include "core/html/parser/HTMLParserIdioms.h" |
| 36 #include "core/html/parser/HTMLSrcsetParser.h" | 36 #include "core/html/parser/HTMLSrcsetParser.h" |
| 37 #include "core/html/parser/HTMLTokenizer.h" | 37 #include "core/html/parser/HTMLTokenizer.h" |
| 38 #include "platform/TraceEvent.h" | |
| 39 #include "wtf/MainThread.h" | 38 #include "wtf/MainThread.h" |
| 39 #include "wtf/TraceEvent.h" |
| 40 | 40 |
| 41 namespace WebCore { | 41 namespace WebCore { |
| 42 | 42 |
| 43 using namespace HTMLNames; | 43 using namespace HTMLNames; |
| 44 | 44 |
| 45 static bool match(const StringImpl* impl, const QualifiedName& qName) | 45 static bool match(const StringImpl* impl, const QualifiedName& qName) |
| 46 { | 46 { |
| 47 return impl == qName.localName().impl(); | 47 return impl == qName.localName().impl(); |
| 48 } | 48 } |
| 49 | 49 |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 if (m_token.type() == HTMLToken::StartTag) | 403 if (m_token.type() == HTMLToken::StartTag) |
| 404 m_tokenizer->updateStateFor(attemptStaticStringCreation(m_token.name
(), Likely8Bit)); | 404 m_tokenizer->updateStateFor(attemptStaticStringCreation(m_token.name
(), Likely8Bit)); |
| 405 m_scanner.scan(m_token, m_source, requests); | 405 m_scanner.scan(m_token, m_source, requests); |
| 406 m_token.clear(); | 406 m_token.clear(); |
| 407 } | 407 } |
| 408 | 408 |
| 409 preloader->takeAndPreload(requests); | 409 preloader->takeAndPreload(requests); |
| 410 } | 410 } |
| 411 | 411 |
| 412 } | 412 } |
| OLD | NEW |