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

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

Issue 1329553004: Add a FOUC painting test. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix build. Created 5 years, 3 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 | « Source/core/dom/Document.h ('k') | Source/core/frame/FrameView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index cc5be9e9394dd98dd44c97a4300cc0809da1ecc8..d8858f0938a827c101f250aa7b02b8afe1611f67 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -339,7 +339,7 @@ static bool acceptsEditingFocus(const Element& element)
uint64_t Document::s_globalTreeVersion = 0;
-static bool s_threadedParsingEnabledForUnitTests = true;
+static bool s_threadedParsingEnabledForTesting = true;
Document::WeakDocumentSet& Document::liveDocumentSet()
{
@@ -2387,7 +2387,7 @@ PassRefPtrWillBeRawPtr<DocumentParser> Document::implicitOpen(ParserSynchronizat
setCompatibilityMode(NoQuirksMode);
- if (!threadedParsingEnabledForUnitTestsOnly())
+ if (!threadedParsingEnabledForTesting())
parserSyncPolicy = ForceSynchronousParsing;
m_parserSyncPolicy = parserSyncPolicy;
@@ -5236,14 +5236,14 @@ void Document::adjustFloatRectForScrollAndAbsoluteZoom(FloatRect& rect, LayoutOb
adjustFloatRectForAbsoluteZoom(rect, layoutObject);
}
-void Document::setThreadedParsingEnabledForUnitTestsOnly(bool enabled)
+void Document::setThreadedParsingEnabledForTesting(bool enabled)
{
- s_threadedParsingEnabledForUnitTests = enabled;
+ s_threadedParsingEnabledForTesting = enabled;
}
-bool Document::threadedParsingEnabledForUnitTestsOnly()
+bool Document::threadedParsingEnabledForTesting()
{
- return s_threadedParsingEnabledForUnitTests;
+ return s_threadedParsingEnabledForTesting;
}
bool Document::hasActiveParser()
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/frame/FrameView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698