Chromium Code Reviews| 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 905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 916 | 916 |
| 917 pumpTokenizerIfPossible(); | 917 pumpTokenizerIfPossible(); |
| 918 | 918 |
| 919 endIfDelayed(); | 919 endIfDelayed(); |
| 920 } | 920 } |
| 921 | 921 |
| 922 void HTMLDocumentParser::end() { | 922 void HTMLDocumentParser::end() { |
| 923 ASSERT(!isDetached()); | 923 ASSERT(!isDetached()); |
| 924 ASSERT(!isScheduledForResume()); | 924 ASSERT(!isScheduledForResume()); |
| 925 | 925 |
| 926 if (document()->isPrefetchOnly()) | |
|
Charlie Harrison
2016/10/17 13:25:50
This might make a little more sense in Document::f
pasko
2016/10/17 14:25:11
OK!
Any recommendation on what part of Document::
Charlie Harrison
2016/10/17 14:49:16
Adding the call to the very end SGTM. Yeah the Doc
pasko
2016/10/25 14:49:40
Done.
| |
| 927 document()->onPrefetchFinished(); | |
| 928 | |
| 926 if (m_haveBackgroundParser) | 929 if (m_haveBackgroundParser) |
| 927 stopBackgroundParser(); | 930 stopBackgroundParser(); |
| 928 | 931 |
| 929 // Informs the the rest of WebCore that parsing is really finished (and | 932 // Informs the the rest of WebCore that parsing is really finished (and |
| 930 // deletes this). | 933 // deletes this). |
| 931 m_treeBuilder->finished(); | 934 m_treeBuilder->finished(); |
| 932 | 935 |
| 933 DocumentParser::stopParsing(); | 936 DocumentParser::stopParsing(); |
| 934 } | 937 } |
| 935 | 938 |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1295 case Asynchronous: | 1298 case Asynchronous: |
| 1296 m_loadingTaskRunner->postTask( | 1299 m_loadingTaskRunner->postTask( |
| 1297 BLINK_FROM_HERE, | 1300 BLINK_FROM_HERE, |
| 1298 WTF::bind(function, std::forward<Ps>(parameters)...)); | 1301 WTF::bind(function, std::forward<Ps>(parameters)...)); |
| 1299 return; | 1302 return; |
| 1300 } | 1303 } |
| 1301 NOTREACHED(); | 1304 NOTREACHED(); |
| 1302 } | 1305 } |
| 1303 | 1306 |
| 1304 } // namespace blink | 1307 } // namespace blink |
| OLD | NEW |