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

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

Issue 659713002: Remove SynchronousMode, as it is always ForceSynchronous. (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/HTMLDocumentParser.cpp ('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.h
diff --git a/Source/core/html/parser/HTMLParserScheduler.h b/Source/core/html/parser/HTMLParserScheduler.h
index df83da292ed32c0e0447850d143d794617ebbd1a..4af274baf69232c12b62ffcf65d28a51725f93f9 100644
--- a/Source/core/html/parser/HTMLParserScheduler.h
+++ b/Source/core/html/parser/HTMLParserScheduler.h
@@ -68,25 +68,6 @@ public:
}
~HTMLParserScheduler();
- // Inline as this is called after every token in the parser.
- void checkForYieldBeforeToken(PumpSession& session)
- {
- if (session.processedTokens > parserChunkSize || session.didSeeScript) {
- // currentTime() can be expensive. By delaying, we avoided calling
- // currentTime() when constructing non-yielding PumpSessions.
- if (!session.startTime)
- session.startTime = currentTime();
-
- session.processedTokens = 0;
- session.didSeeScript = false;
-
- double elapsedTime = currentTime() - session.startTime;
- if (elapsedTime > parserTimeLimit)
- session.needsYield = true;
- }
- ++session.processedTokens;
- }
-
void scheduleForResume();
bool isScheduledForResume() const { return m_isSuspendedWithActiveTimer || m_continueNextChunkTimer.isActive(); }
« no previous file with comments | « Source/core/html/parser/HTMLDocumentParser.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698