Index: Source/core/html/parser/HTMLConstructionSite.cpp |
diff --git a/Source/core/html/parser/HTMLConstructionSite.cpp b/Source/core/html/parser/HTMLConstructionSite.cpp |
index c024ebb56baf300e34f3d214d063c689908d2eaf..c32240dd7fdab629b1b9b3436fa6adad702e5113 100644 |
--- a/Source/core/html/parser/HTMLConstructionSite.cpp |
+++ b/Source/core/html/parser/HTMLConstructionSite.cpp |
@@ -426,20 +426,21 @@ void HTMLConstructionSite::insertDoctype(AtomicHTMLToken* token) |
void HTMLConstructionSite::insertComment(AtomicHTMLToken* token) |
{ |
ASSERT(token->type() == HTMLToken::Comment); |
- attachLater(currentNode(), Comment::create(&ownerDocumentForCurrentNode(), token->comment())); |
+ attachLater(currentNode(), Comment::create(ownerDocumentForCurrentNode(), token->comment())); |
} |
void HTMLConstructionSite::insertCommentOnDocument(AtomicHTMLToken* token) |
{ |
ASSERT(token->type() == HTMLToken::Comment); |
- attachLater(m_attachmentRoot, Comment::create(m_document, token->comment())); |
+ ASSERT(m_document); |
+ attachLater(m_attachmentRoot, Comment::create(*m_document, token->comment())); |
} |
void HTMLConstructionSite::insertCommentOnHTMLHtmlElement(AtomicHTMLToken* token) |
{ |
ASSERT(token->type() == HTMLToken::Comment); |
ContainerNode* parent = m_openElements.rootNode(); |
- attachLater(parent, Comment::create(&parent->document(), token->comment())); |
+ attachLater(parent, Comment::create(parent->document(), token->comment())); |
} |
void HTMLConstructionSite::insertHTMLHeadElement(AtomicHTMLToken* token) |