| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2010 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 HTMLTokenizer* tokenizer() const { return m_tokenizer.get(); } | 85 HTMLTokenizer* tokenizer() const { return m_tokenizer.get(); } |
| 86 | 86 |
| 87 TextPosition textPosition() const final; | 87 TextPosition textPosition() const final; |
| 88 bool isParsingAtLineNumber() const final; | 88 bool isParsingAtLineNumber() const final; |
| 89 OrdinalNumber lineNumber() const final; | 89 OrdinalNumber lineNumber() const final; |
| 90 | 90 |
| 91 void suspendScheduledTasks() final; | 91 void suspendScheduledTasks() final; |
| 92 void resumeScheduledTasks() final; | 92 void resumeScheduledTasks() final; |
| 93 | 93 |
| 94 struct ParsedChunk { | 94 struct ParsedChunk { |
| 95 WTF_MAKE_FAST_ALLOCATED(ParsedChunk); |
| 96 public: |
| 95 OwnPtr<CompactHTMLTokenStream> tokens; | 97 OwnPtr<CompactHTMLTokenStream> tokens; |
| 96 PreloadRequestStream preloads; | 98 PreloadRequestStream preloads; |
| 97 XSSInfoStream xssInfos; | 99 XSSInfoStream xssInfos; |
| 98 HTMLTokenizer::State tokenizerState; | 100 HTMLTokenizer::State tokenizerState; |
| 99 HTMLTreeBuilderSimulator::State treeBuilderState; | 101 HTMLTreeBuilderSimulator::State treeBuilderState; |
| 100 HTMLInputCheckpoint inputCheckpoint; | 102 HTMLInputCheckpoint inputCheckpoint; |
| 101 TokenPreloadScannerCheckpoint preloadScannerCheckpoint; | 103 TokenPreloadScannerCheckpoint preloadScannerCheckpoint; |
| 102 bool startingScript; | 104 bool startingScript; |
| 103 }; | 105 }; |
| 104 void didReceiveParsedChunkFromBackgroundParser(PassOwnPtr<ParsedChunk>); | 106 void didReceiveParsedChunkFromBackgroundParser(PassOwnPtr<ParsedChunk>); |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 bool m_haveBackgroundParser; | 207 bool m_haveBackgroundParser; |
| 206 bool m_tasksWereSuspended; | 208 bool m_tasksWereSuspended; |
| 207 unsigned m_pumpSessionNestingLevel; | 209 unsigned m_pumpSessionNestingLevel; |
| 208 unsigned m_pumpSpeculationsSessionNestingLevel; | 210 unsigned m_pumpSpeculationsSessionNestingLevel; |
| 209 bool m_isParsingAtLineNumber; | 211 bool m_isParsingAtLineNumber; |
| 210 }; | 212 }; |
| 211 | 213 |
| 212 } | 214 } |
| 213 | 215 |
| 214 #endif | 216 #endif |
| OLD | NEW |