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

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

Issue 665613003: Remove the ability to parse HTML fragments (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 34d8e24f0918e9799b54bf48649b60c9787ee4ea..d483b87b1d5382888f18ff44412ae776c4e3aa2e 100644
--- a/sky/engine/core/html/parser/HTMLDocumentParser.h
+++ b/sky/engine/core/html/parser/HTMLDocumentParser.h
@@ -48,7 +48,6 @@ namespace blink {
class BackgroundHTMLParser;
class CompactHTMLToken;
class Document;
-class DocumentFragment;
class Element;
class HTMLDocument;
class HTMLParserScheduler;
@@ -72,8 +71,6 @@ public:
// Exposed for HTMLParserScheduler
void resumeParsingAfterYield();
- static void parseDocumentFragment(const String&, DocumentFragment*, Element* contextElement);
-
HTMLTokenizer* tokenizer() const { return m_tokenizer.get(); }
TextPosition textPosition() const;
@@ -99,16 +96,10 @@ protected:
virtual void finish() override final;
HTMLDocumentParser(HTMLDocument&, bool reportErrors);
- HTMLDocumentParser(DocumentFragment*, Element* contextElement);
HTMLTreeBuilder* treeBuilder() const { return m_treeBuilder.get(); }
private:
- static PassRefPtrWillBeRawPtr<HTMLDocumentParser> create(DocumentFragment* fragment, Element* contextElement)
- {
- return adoptRefWillBeNoop(new HTMLDocumentParser(fragment, contextElement));
- }
-
virtual HTMLDocumentParser* asHTMLDocumentParser() override final { return this; }
// DocumentParser

Powered by Google App Engine
This is Rietveld 408576698