| 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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 | 516 |
| 517 if (!chunk->startingScript && | 517 if (!chunk->startingScript && |
| 518 (it->type() == HTMLToken::StartTag || it->type() == HTMLToken::EndTag)) | 518 (it->type() == HTMLToken::StartTag || it->type() == HTMLToken::EndTag)) |
| 519 elementTokenCount++; | 519 elementTokenCount++; |
| 520 | 520 |
| 521 if (document()->frame() && | 521 if (document()->frame() && |
| 522 document()->frame()->navigationScheduler().locationChangePending()) { | 522 document()->frame()->navigationScheduler().locationChangePending()) { |
| 523 // To match main-thread parser behavior (which never checks | 523 // To match main-thread parser behavior (which never checks |
| 524 // locationChangePending on the EOF path) we peek to see if this chunk has | 524 // locationChangePending on the EOF path) we peek to see if this chunk has |
| 525 // an EOF and process it anyway. | 525 // an EOF and process it anyway. |
| 526 if (tokens->last().type() == HTMLToken::EndOfFile) { | 526 if (tokens->back().type() == HTMLToken::EndOfFile) { |
| 527 ASSERT( | 527 ASSERT( |
| 528 m_speculations | 528 m_speculations |
| 529 .isEmpty()); // There should never be any chunks after the EOF. | 529 .isEmpty()); // There should never be any chunks after the EOF. |
| 530 prepareToStopParsing(); | 530 prepareToStopParsing(); |
| 531 } | 531 } |
| 532 break; | 532 break; |
| 533 } | 533 } |
| 534 | 534 |
| 535 m_textPosition = it->textPosition(); | 535 m_textPosition = it->textPosition(); |
| 536 | 536 |
| (...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1295 case Asynchronous: | 1295 case Asynchronous: |
| 1296 m_loadingTaskRunner->postTask( | 1296 m_loadingTaskRunner->postTask( |
| 1297 BLINK_FROM_HERE, | 1297 BLINK_FROM_HERE, |
| 1298 WTF::bind(function, std::forward<Ps>(parameters)...)); | 1298 WTF::bind(function, std::forward<Ps>(parameters)...)); |
| 1299 return; | 1299 return; |
| 1300 } | 1300 } |
| 1301 NOTREACHED(); | 1301 NOTREACHED(); |
| 1302 } | 1302 } |
| 1303 | 1303 |
| 1304 } // namespace blink | 1304 } // namespace blink |
| OLD | NEW |