| 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) 2010 Google Inc. All Rights Reserved. | 3 * Copyright (C) 2010 Google Inc. All Rights Reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 | 82 |
| 83 KURL predictedBaseElementURL; | 83 KURL predictedBaseElementURL; |
| 84 bool inStyle; | 84 bool inStyle; |
| 85 size_t templateCount; | 85 size_t templateCount; |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 CSSPreloadScanner m_cssScanner; | 88 CSSPreloadScanner m_cssScanner; |
| 89 const KURL m_documentURL; | 89 const KURL m_documentURL; |
| 90 KURL m_predictedBaseElementURL; | 90 KURL m_predictedBaseElementURL; |
| 91 bool m_inStyle; | 91 bool m_inStyle; |
| 92 #if ENABLE(PICTURE) |
| 93 bool m_inPicture; |
| 94 #endif |
| 92 size_t m_templateCount; | 95 size_t m_templateCount; |
| 93 | 96 |
| 94 Vector<Checkpoint> m_checkpoints; | 97 Vector<Checkpoint> m_checkpoints; |
| 95 }; | 98 }; |
| 96 | 99 |
| 97 class HTMLPreloadScanner { | 100 class HTMLPreloadScanner { |
| 98 WTF_MAKE_NONCOPYABLE(HTMLPreloadScanner); WTF_MAKE_FAST_ALLOCATED; | 101 WTF_MAKE_NONCOPYABLE(HTMLPreloadScanner); WTF_MAKE_FAST_ALLOCATED; |
| 99 public: | 102 public: |
| 100 HTMLPreloadScanner(const HTMLParserOptions&, const KURL& documentURL); | 103 HTMLPreloadScanner(const HTMLParserOptions&, const KURL& documentURL); |
| 101 ~HTMLPreloadScanner(); | 104 ~HTMLPreloadScanner(); |
| 102 | 105 |
| 103 void appendToEnd(const SegmentedString&); | 106 void appendToEnd(const SegmentedString&); |
| 104 void scan(HTMLResourcePreloader*, const KURL& documentBaseElementURL); | 107 void scan(HTMLResourcePreloader*, const KURL& documentBaseElementURL); |
| 105 | 108 |
| 106 private: | 109 private: |
| 107 TokenPreloadScanner m_scanner; | 110 TokenPreloadScanner m_scanner; |
| 108 SegmentedString m_source; | 111 SegmentedString m_source; |
| 109 HTMLToken m_token; | 112 HTMLToken m_token; |
| 110 OwnPtr<HTMLTokenizer> m_tokenizer; | 113 OwnPtr<HTMLTokenizer> m_tokenizer; |
| 111 }; | 114 }; |
| 112 | 115 |
| 113 } | 116 } |
| 114 | 117 |
| 115 #endif | 118 #endif |
| OLD | NEW |