Index: Source/core/dom/Comment.cpp |
diff --git a/Source/core/dom/Comment.cpp b/Source/core/dom/Comment.cpp |
index 03c5e98a70b82a6b208ce8159647d3335af346c4..a1dd89b970d8fa02542862f5a4614092ba2307de 100644 |
--- a/Source/core/dom/Comment.cpp |
+++ b/Source/core/dom/Comment.cpp |
@@ -32,9 +32,9 @@ inline Comment::Comment(Document& document, const String& text) |
ScriptWrappable::init(this); |
} |
-PassRefPtrWillBeRawPtr<Comment> Comment::create(Document& document, const String& text) |
+PassRefPtrWillBeRawPtr<Comment> Comment::create(ExecutionContext* executionContext, const String& text) |
{ |
- return adoptRefWillBeNoop(new Comment(document, text)); |
+ return adoptRefWillBeNoop(new Comment(*toDocument(executionContext), text)); |
} |
String Comment::nodeName() const |