OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2013 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 OwnPtr<HTMLDocumentParser::ParsedChunk> chunk = adoptPtr(new HTMLDocumentPar
ser::ParsedChunk); | 260 OwnPtr<HTMLDocumentParser::ParsedChunk> chunk = adoptPtr(new HTMLDocumentPar
ser::ParsedChunk); |
261 chunk->preloads.swap(m_pendingPreloads); | 261 chunk->preloads.swap(m_pendingPreloads); |
262 chunk->xssInfos.swap(m_pendingXSSInfos); | 262 chunk->xssInfos.swap(m_pendingXSSInfos); |
263 chunk->tokenizerState = m_tokenizer->state(); | 263 chunk->tokenizerState = m_tokenizer->state(); |
264 chunk->treeBuilderState = m_treeBuilderSimulator.state(); | 264 chunk->treeBuilderState = m_treeBuilderSimulator.state(); |
265 chunk->inputCheckpoint = m_input.createCheckpoint(m_pendingTokens->size()); | 265 chunk->inputCheckpoint = m_input.createCheckpoint(m_pendingTokens->size()); |
266 chunk->preloadScannerCheckpoint = m_preloadScanner->createCheckpoint(); | 266 chunk->preloadScannerCheckpoint = m_preloadScanner->createCheckpoint(); |
267 chunk->tokens = m_pendingTokens.release(); | 267 chunk->tokens = m_pendingTokens.release(); |
268 chunk->startingScript = m_startingScript; | 268 chunk->startingScript = m_startingScript; |
269 m_startingScript = false; | 269 m_startingScript = false; |
| 270 usleep(100 * 1000); |
270 callOnMainThread(bind(&HTMLDocumentParser::didReceiveParsedChunkFromBackgrou
ndParser, m_parser, chunk.release())); | 271 callOnMainThread(bind(&HTMLDocumentParser::didReceiveParsedChunkFromBackgrou
ndParser, m_parser, chunk.release())); |
271 | 272 |
272 m_pendingTokens = adoptPtr(new CompactHTMLTokenStream); | 273 m_pendingTokens = adoptPtr(new CompactHTMLTokenStream); |
273 } | 274 } |
274 | 275 |
275 } | 276 } |
OLD | NEW |