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

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

Issue 657753002: Remove state variables in PumpSession as they are no longer used. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased Created 6 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
« no previous file with comments | « Source/core/html/parser/HTMLParserScheduler.h ('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/HTMLParserScheduler.cpp
diff --git a/Source/core/html/parser/HTMLParserScheduler.cpp b/Source/core/html/parser/HTMLParserScheduler.cpp
index 2a31bf6df642fc3ec174e5f58467af3bd2fbc6ed..b234f684a237e3898d85e1e5fac40d770bea4795 100644
--- a/Source/core/html/parser/HTMLParserScheduler.cpp
+++ b/Source/core/html/parser/HTMLParserScheduler.cpp
@@ -32,15 +32,6 @@
namespace blink {
-// parserChunkSize is used to define how many tokens the parser will
-// process before checking against parserTimeLimit and possibly yielding.
-// This is a performance optimization to prevent checking after every token.
-const int HTMLParserScheduler::parserChunkSize = 4096;
-
-// parserTimeLimit is the seconds the parser will run in one write() call
-// before yielding. Inline <script> execution can cause it to exceed the limit.
-const double HTMLParserScheduler::parserTimeLimit = 0.2;
-
ActiveParserSession::ActiveParserSession(Document* document)
: m_document(document)
{
@@ -59,13 +50,6 @@ ActiveParserSession::~ActiveParserSession()
PumpSession::PumpSession(unsigned& nestingLevel, Document* document)
: NestingLevelIncrementer(nestingLevel)
, ActiveParserSession(document)
- // Setting processedTokens to INT_MAX causes us to check for yields
- // after any token during any parse where yielding is allowed.
- // At that time we'll initialize startTime.
- , processedTokens(INT_MAX)
- , startTime(0)
- , needsYield(false)
- , didSeeScript(false)
{
}
« no previous file with comments | « Source/core/html/parser/HTMLParserScheduler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698