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

Unified Diff: sky/engine/core/html/parser/HTMLDocumentParser.h

Issue 676133002: Remove HTMLParserOptions (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fixup 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
Index: sky/engine/core/html/parser/HTMLDocumentParser.h
diff --git a/sky/engine/core/html/parser/HTMLDocumentParser.h b/sky/engine/core/html/parser/HTMLDocumentParser.h
index a7f02c2b47c7775ee4ae5477ba186fb1589b2879..055cfb6efcc785edc60bcaa9cfd8b08a33ebbbea 100644
--- a/sky/engine/core/html/parser/HTMLDocumentParser.h
+++ b/sky/engine/core/html/parser/HTMLDocumentParser.h
@@ -27,12 +27,11 @@
#define HTMLDocumentParser_h
#include "base/memory/weak_ptr.h"
-#include "core/dom/DecodedDataDocumentParser.h"
+#include "core/dom/DocumentParser.h"
#include "core/fetch/ResourceClient.h"
#include "core/frame/UseCounter.h"
#include "core/html/parser/CompactHTMLToken.h"
#include "core/html/parser/HTMLInputStream.h"
-#include "core/html/parser/HTMLParserOptions.h"
#include "core/html/parser/HTMLScriptRunner.h"
#include "core/html/parser/HTMLToken.h"
#include "core/html/parser/HTMLTokenizer.h"
@@ -57,9 +56,8 @@ class ScriptSourceCode;
class PumpSession;
-class HTMLDocumentParser : public DecodedDataDocumentParser {
- WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
- WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLDocumentParser);
+class HTMLDocumentParser : public DocumentParser {
+ WTF_MAKE_FAST_ALLOCATED;
public:
static PassRefPtrWillBeRawPtr<HTMLDocumentParser> create(HTMLDocument& document, bool reportErrors)
{
@@ -69,8 +67,6 @@ public:
void parse(mojo::ScopedDataPipeConsumerHandle) override;
- virtual void trace(Visitor*) override;
-
// Exposed for HTMLParserScheduler
void resumeParsingAfterYield();
@@ -121,15 +117,11 @@ private:
void endIfDelayed();
void end();
- bool shouldUseThreading() const { return m_options.useThreading; }
-
bool isParsingFragment() const;
bool isScheduledForResume() const;
bool inPumpSession() const { return m_pumpSessionNestingLevel > 0; }
bool shouldDelayEnd() const { return inPumpSession() || isWaitingForScripts() || isScheduledForResume() || isExecutingScript(); }
- HTMLParserOptions m_options;
-
OwnPtrWillBeMember<HTMLTreeBuilder> m_treeBuilder;
OwnPtr<HTMLParserScheduler> m_parserScheduler;
TextPosition m_textPosition;
« no previous file with comments | « sky/engine/core/html/parser/BackgroundHTMLParser.cpp ('k') | sky/engine/core/html/parser/HTMLDocumentParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698