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

Unified Diff: sky/engine/core/html/parser/HTMLTreeBuilder.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
« no previous file with comments | « sky/engine/core/html/parser/HTMLTokenizer.cpp ('k') | sky/engine/core/html/parser/HTMLTreeBuilder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/parser/HTMLTreeBuilder.h
diff --git a/sky/engine/core/html/parser/HTMLTreeBuilder.h b/sky/engine/core/html/parser/HTMLTreeBuilder.h
index dedda0c06ea6126f5a55b4a21595f8a083f8ee13..db85413fcd0e004ef8fac656d6e1f8f8c6bb95e2 100644
--- a/sky/engine/core/html/parser/HTMLTreeBuilder.h
+++ b/sky/engine/core/html/parser/HTMLTreeBuilder.h
@@ -29,7 +29,6 @@
#include "core/html/parser/HTMLConstructionSite.h"
#include "core/html/parser/HTMLElementStack.h"
-#include "core/html/parser/HTMLParserOptions.h"
#include "platform/heap/Handle.h"
#include "wtf/Noncopyable.h"
#include "wtf/PassOwnPtr.h"
@@ -54,16 +53,11 @@ class HTMLDocumentParser;
class HTMLTreeBuilder final : public NoBaseWillBeGarbageCollectedFinalized<HTMLTreeBuilder> {
WTF_MAKE_NONCOPYABLE(HTMLTreeBuilder); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
public:
- static PassOwnPtrWillBeRawPtr<HTMLTreeBuilder> create(HTMLDocumentParser* parser, HTMLDocument* document, bool reportErrors, const HTMLParserOptions& options)
+ static PassOwnPtrWillBeRawPtr<HTMLTreeBuilder> create(HTMLDocumentParser* parser, HTMLDocument* document, bool reportErrors)
{
- return adoptPtrWillBeNoop(new HTMLTreeBuilder(parser, document, reportErrors, options));
- }
- static PassOwnPtrWillBeRawPtr<HTMLTreeBuilder> create(HTMLDocumentParser* parser, DocumentFragment* fragment, Element* contextElement, const HTMLParserOptions& options)
- {
- return adoptPtrWillBeNoop(new HTMLTreeBuilder(parser, fragment, contextElement, options));
+ return adoptPtrWillBeNoop(new HTMLTreeBuilder(parser, document, reportErrors));
}
~HTMLTreeBuilder();
- void trace(Visitor*);
const HTMLElementStack* openElements() const { return m_tree.openElements(); }
@@ -92,8 +86,7 @@ private:
TextMode,
};
- HTMLTreeBuilder(HTMLDocumentParser*, HTMLDocument*, bool reportErrors, const HTMLParserOptions&);
- HTMLTreeBuilder(HTMLDocumentParser*, DocumentFragment*, Element* contextElement, const HTMLParserOptions&);
+ HTMLTreeBuilder(HTMLDocumentParser*, HTMLDocument*, bool reportErrors);
void processStartTag(AtomicHTMLToken*);
void processEndTag(AtomicHTMLToken*);
@@ -140,8 +133,6 @@ private:
RefPtrWillBeMember<Element> m_scriptToProcess; // <script> tag which needs processing before resuming the parser.
TextPosition m_scriptToProcessStartPosition; // Starting line number of the script tag needing processing.
-
- HTMLParserOptions m_options;
};
}
« no previous file with comments | « sky/engine/core/html/parser/HTMLTokenizer.cpp ('k') | sky/engine/core/html/parser/HTMLTreeBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698