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

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

Issue 26129005: Rewrite Text node attaching to not be N^2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Seems to actually work Created 7 years, 2 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
Index: Source/core/html/parser/HTMLDocumentParser.cpp
diff --git a/Source/core/html/parser/HTMLDocumentParser.cpp b/Source/core/html/parser/HTMLDocumentParser.cpp
index f61fb4efe6d3c6cbd885cd534be857ab3ed9d713..843fe0fde958f1bf179877f5bc8888c89c7485d4 100644
--- a/Source/core/html/parser/HTMLDocumentParser.cpp
+++ b/Source/core/html/parser/HTMLDocumentParser.cpp
@@ -557,6 +557,9 @@ void HTMLDocumentParser::pumpTokenizer(SynchronousMode mode)
if (isStopped())
return;
+ if (mode == ForceSynchronous)
+ m_treeBuilder->flush();
abarth-chromium 2013/10/11 18:54:04 Don't you need to check if (isStopped()) ret
+
if (session.needsYield)
m_parserScheduler->scheduleForResume();

Powered by Google App Engine
This is Rietveld 408576698