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

Unified Diff: sky/engine/core/dom/Document.cpp

Issue 712423002: Simplify some parsing-related code (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/dom/Document.cpp
diff --git a/sky/engine/core/dom/Document.cpp b/sky/engine/core/dom/Document.cpp
index 0b61d65903f67ece715b01adaf17e813cbeeba34..57648a44678e345882bb81a092db483118a14a41 100644
--- a/sky/engine/core/dom/Document.cpp
+++ b/sky/engine/core/dom/Document.cpp
@@ -1402,12 +1402,6 @@ void Document::removeAllEventListeners()
domWindow->removeAllEventListeners();
}
-PassRefPtr<DocumentParser> Document::createParser()
-{
- // FIXME(sky): Should we pass true for report errors like the inspector did?
- return HTMLDocumentParser::create(toHTMLDocument(*this), false);
-}
-
HTMLDocumentParser* Document::scriptableDocumentParser() const
{
return parser() ? parser()->asHTMLDocumentParser() : 0;
@@ -1447,7 +1441,7 @@ void Document::startParsing()
ASSERT(!firstChild());
ASSERT(!m_focusedElement);
- m_parser = createParser();
+ m_parser = HTMLDocumentParser::create(toHTMLDocument(*this), false);
setParsing(true);
setReadyState(Loading);
}

Powered by Google App Engine
This is Rietveld 408576698