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

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

Issue 23467007: Have Range constructor take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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
Index: Source/core/dom/Comment.h
diff --git a/Source/core/dom/Comment.h b/Source/core/dom/Comment.h
index affc4889d297b432f547ab4eba7718eff15ffd3e..ed2ce678557ca305c7c0ed54b8c035f76cba57f2 100644
--- a/Source/core/dom/Comment.h
+++ b/Source/core/dom/Comment.h
@@ -31,6 +31,11 @@ class ScriptExecutionContext;
class Comment FINAL : public CharacterData {
public:
+ static PassRefPtr<Comment> create(Document& document, const String& text)
+ {
+ return create(&document, text);
+ }
+
static PassRefPtr<Comment> create(Document*, const String&);
private:

Powered by Google App Engine
This is Rietveld 408576698