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

Unified Diff: sky/engine/core/html/parser/HTMLTreeBuilder.cpp

Issue 680583003: Delete ScriptableDocumentParser (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Sort headers 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/HTMLTreeBuilder.h ('k') | sky/engine/core/loader/DocumentWriter.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.cpp
diff --git a/sky/engine/core/html/parser/HTMLTreeBuilder.cpp b/sky/engine/core/html/parser/HTMLTreeBuilder.cpp
index b654d24b19fadd26a4189d45cf41e50df81c2534..a5e7ff64c17305d60f64f901f9e7f121c0812395 100644
--- a/sky/engine/core/html/parser/HTMLTreeBuilder.cpp
+++ b/sky/engine/core/html/parser/HTMLTreeBuilder.cpp
@@ -45,12 +45,12 @@ static TextPosition uninitializedPositionValue1()
return TextPosition(OrdinalNumber::fromOneBasedInt(-1), OrdinalNumber::first());
}
-HTMLTreeBuilder::HTMLTreeBuilder(HTMLDocumentParser* parser, HTMLDocument* document, ParserContentPolicy parserContentPolicy, bool, const HTMLParserOptions& options)
+HTMLTreeBuilder::HTMLTreeBuilder(HTMLDocumentParser* parser, HTMLDocument* document, bool, const HTMLParserOptions& options)
:
#if ENABLE(ASSERT)
m_isAttached(true),
#endif
- m_tree(document, parserContentPolicy)
+ m_tree(document)
, m_insertionMode(HTMLMode)
, m_originalInsertionMode(HTMLMode)
, m_parser(parser)
@@ -62,13 +62,13 @@ HTMLTreeBuilder::HTMLTreeBuilder(HTMLDocumentParser* parser, HTMLDocument* docum
// FIXME: Member variables should be grouped into self-initializing structs to
// minimize code duplication between these constructors.
-HTMLTreeBuilder::HTMLTreeBuilder(HTMLDocumentParser* parser, DocumentFragment* fragment, Element* contextElement, ParserContentPolicy parserContentPolicy, const HTMLParserOptions& options)
+HTMLTreeBuilder::HTMLTreeBuilder(HTMLDocumentParser* parser, DocumentFragment* fragment, Element* contextElement, const HTMLParserOptions& options)
:
#if ENABLE(ASSERT)
m_isAttached(true),
#endif
m_fragmentContext(fragment, contextElement)
- , m_tree(fragment, parserContentPolicy)
+ , m_tree(fragment)
, m_insertionMode(HTMLMode)
, m_originalInsertionMode(HTMLMode)
, m_parser(parser)
@@ -209,8 +209,7 @@ void HTMLTreeBuilder::processEndTag(AtomicHTMLToken* token)
if (token->name() == HTMLNames::scriptTag) {
// Pause ourselves so that parsing stops until the script can be processed by the caller.
ASSERT(m_tree.currentElement()->hasLocalName(HTMLNames::scriptTag.localName()));
- if (scriptingContentIsAllowed(m_tree.parserContentPolicy()))
- m_scriptToProcess = m_tree.currentElement();
+ m_scriptToProcess = m_tree.currentElement();
m_tree.openElements()->pop();
setInsertionMode(m_originalInsertionMode);
« no previous file with comments | « sky/engine/core/html/parser/HTMLTreeBuilder.h ('k') | sky/engine/core/loader/DocumentWriter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698