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

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

Issue 673603002: Reland: Make the HTMLDocumentParser yield more aggressively (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased Created 6 years, 1 month 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/HTMLParserScheduler.h
diff --git a/Source/core/html/parser/HTMLParserScheduler.h b/Source/core/html/parser/HTMLParserScheduler.h
index 8410754f7029b8e2020e53dae7050cdffe5a5b13..d13d47919280b0fa900092ce5f54d19611f7b1ea 100644
--- a/Source/core/html/parser/HTMLParserScheduler.h
+++ b/Source/core/html/parser/HTMLParserScheduler.h
@@ -78,6 +78,7 @@ public:
bool isScheduledForResume() const { return m_isSuspendedWithActiveTimer || m_continueNextChunkTimer.isActive(); }
+ void scheduleForResume();
bool yieldIfNeeded(const SpeculationsPumpSession&, bool startingScript);
void suspend();
@@ -87,7 +88,6 @@ private:
explicit HTMLParserScheduler(HTMLDocumentParser*);
bool shouldYield(const SpeculationsPumpSession&, bool startingScript) const;
- void scheduleForResume();
void continueNextChunkTimerFired(Timer<HTMLParserScheduler>*);
HTMLDocumentParser* m_parser;

Powered by Google App Engine
This is Rietveld 408576698