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

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

Issue 1823863002: Simplify parsing/loading state, attempt #2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes Created 4 years, 9 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
Index: third_party/WebKit/Source/core/html/parser/HTMLParserScheduler.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLParserScheduler.cpp b/third_party/WebKit/Source/core/html/parser/HTMLParserScheduler.cpp
index 70b70ad400353a84fb9359f42850bcf1e078df67..ae7451459bbb18d2a936296e2167a66b8438f4ad 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLParserScheduler.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLParserScheduler.cpp
@@ -35,24 +35,8 @@
namespace blink {
-ActiveParserSession::ActiveParserSession(unsigned& nestingLevel, Document* document)
+PumpSession::PumpSession(unsigned& nestingLevel)
: NestingLevelIncrementer(nestingLevel)
- , m_document(document)
-{
- if (!m_document)
- return;
- m_document->incrementActiveParserCount();
-}
-
-ActiveParserSession::~ActiveParserSession()
-{
- if (!m_document)
- return;
- m_document->decrementActiveParserCount();
-}
-
-PumpSession::PumpSession(unsigned& nestingLevel, Document* document)
- : ActiveParserSession(nestingLevel, document)
{
}
@@ -60,8 +44,8 @@ PumpSession::~PumpSession()
{
}
-SpeculationsPumpSession::SpeculationsPumpSession(unsigned& nestingLevel, Document* document)
- : ActiveParserSession(nestingLevel, document)
+SpeculationsPumpSession::SpeculationsPumpSession(unsigned& nestingLevel)
+ : NestingLevelIncrementer(nestingLevel)
, m_startTime(currentTime())
, m_processedElementTokens(0)
{

Powered by Google App Engine
This is Rietveld 408576698