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

Unified Diff: Source/core/html/parser/HTMLTreeBuilder.h

Issue 494993002: HTMLConstructionSite: avoid n^2 running time for large scripts. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add FlushMode enum Created 6 years, 4 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/HTMLTreeBuilder.h
diff --git a/Source/core/html/parser/HTMLTreeBuilder.h b/Source/core/html/parser/HTMLTreeBuilder.h
index d2b541b79ca5fc5e9decc85be9acc69af39c98d6..3860d387832162daa0e3776b22df86850aa8cf65 100644
--- a/Source/core/html/parser/HTMLTreeBuilder.h
+++ b/Source/core/html/parser/HTMLTreeBuilder.h
@@ -83,7 +83,7 @@ public:
void finished();
// Synchronously empty any queues, possibly creating more DOM nodes.
- void flush() { m_tree.flush(); }
+ void flush() { m_tree.flush(FacultativeFlush); }
void setShouldSkipLeadingNewline(bool shouldSkip) { m_shouldSkipLeadingNewline = shouldSkip; }

Powered by Google App Engine
This is Rietveld 408576698