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

Unified Diff: Source/core/html/parser/HTMLConstructionSite.cpp

Issue 15796009: Parse SVG as HTML (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix compile issue (the tree moved). Ready for landing Created 7 years, 7 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 | « Source/core/dom/Document.cpp ('k') | Source/core/html/parser/HTMLDocumentParser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/parser/HTMLConstructionSite.cpp
diff --git a/Source/core/html/parser/HTMLConstructionSite.cpp b/Source/core/html/parser/HTMLConstructionSite.cpp
index d17ad4beaa99ce3166d9aed0fa844a9c67e3f5d7..171d1d3e2f00e36c732e24041ad1b47d0794ea12 100644
--- a/Source/core/html/parser/HTMLConstructionSite.cpp
+++ b/Source/core/html/parser/HTMLConstructionSite.cpp
@@ -219,7 +219,7 @@ HTMLConstructionSite::HTMLConstructionSite(Document* document, ParserContentPoli
, m_redirectAttachToFosterParent(false)
, m_inQuirksMode(document->inQuirksMode())
{
- ASSERT(m_document->isHTMLDocument() || m_document->isXHTMLDocument());
+ ASSERT(m_document->isHTMLDocument() || m_document->isSVGDocument() || m_document->isXHTMLDocument());
}
HTMLConstructionSite::HTMLConstructionSite(DocumentFragment* fragment, ParserContentPolicy parserContentPolicy)
@@ -230,7 +230,7 @@ HTMLConstructionSite::HTMLConstructionSite(DocumentFragment* fragment, ParserCon
, m_redirectAttachToFosterParent(false)
, m_inQuirksMode(fragment->document()->inQuirksMode())
{
- ASSERT(m_document->isHTMLDocument() || m_document->isXHTMLDocument());
+ ASSERT(m_document->isHTMLDocument() || m_document->isSVGDocument() || m_document->isXHTMLDocument());
}
HTMLConstructionSite::~HTMLConstructionSite()
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/html/parser/HTMLDocumentParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698