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

Unified Diff: Source/core/dom/Document.h

Issue 1313013005: Add a test that we resume commits after inserting the body. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: dcheng@ review Created 5 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
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index 8512bdd52e7dff453044d5204a900f7dbe332ad8..984cb7a79d26a6f3db6711c1401c66f78042bcd4 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -1032,6 +1032,11 @@ public:
CanvasFontCache* canvasFontCache();
+ // Used by unit tests so that all parsing will be main thread for
+ // controlling parsing and chunking precisely.
+ static void setThreadedParsingEnabledForUnitTestsOnly(bool enabled);
+ static bool threadedParsingEnabledForUnitTestsOnly();
+
void incrementNodeCount() { m_nodeCount++; }
void decrementNodeCount()
{
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698