Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(797)

Unified Diff: Source/core/html/parser/HTMLDocumentParser.cpp

Issue 359623004: Don't preload all tokens (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/tables/mozilla_expected_failures/bugs/bug128876-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/parser/HTMLDocumentParser.cpp
diff --git a/Source/core/html/parser/HTMLDocumentParser.cpp b/Source/core/html/parser/HTMLDocumentParser.cpp
index 356f73dcf1abc77be4f856e91ccffc9e464f4266..48495101ece76362e23c545c73bf19e189db3bf4 100644
--- a/Source/core/html/parser/HTMLDocumentParser.cpp
+++ b/Source/core/html/parser/HTMLDocumentParser.cpp
@@ -358,13 +358,7 @@ void HTMLDocumentParser::didReceiveParsedChunkFromBackgroundParser(PassOwnPtr<Pa
RefPtrWillBeRawPtr<HTMLDocumentParser> protect(this);
ASSERT(m_speculations.isEmpty());
- // This preload call is redundant, but we plan to change treebuilding to
- // always operate asynchronously after a message-loop round trip after delivery
- // to the main thread, thus we'll always use the preloader. Before making
- // that change, we're sending all chunks through the preloader right
- // before treebuilding (changes 15 layout tests).
- // https://codereview.chromium.org/258013009/
- m_preloader->takeAndPreload(chunk->preloads);
+ chunk->preloads.clear(); // We don't need to preload because we're going to parse immediately.
m_speculations.append(chunk);
pumpPendingSpeculations();
}
« no previous file with comments | « LayoutTests/tables/mozilla_expected_failures/bugs/bug128876-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698