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

Unified Diff: Source/core/dom/Comment.cpp

Issue 14931009: Make Comment constructable (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase 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/Comment.h ('k') | Source/core/dom/Comment.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Comment.cpp
diff --git a/Source/core/dom/Comment.cpp b/Source/core/dom/Comment.cpp
index 5b8374f99f16177cc065286c5e066574535247cc..eb525bd2542ce2075e7de6ffbd82b0d06438fc0d 100644
--- a/Source/core/dom/Comment.cpp
+++ b/Source/core/dom/Comment.cpp
@@ -37,6 +37,11 @@ PassRefPtr<Comment> Comment::create(Document* document, const String& text)
return adoptRef(new Comment(document, text));
}
+PassRefPtr<Comment> Comment::create(ScriptExecutionContext* context, const String& text)
+{
+ return adoptRef(new Comment(toDocument(context), text));
+}
+
String Comment::nodeName() const
{
return commentAtom.string();
« no previous file with comments | « Source/core/dom/Comment.h ('k') | Source/core/dom/Comment.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698