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) |
{ |