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

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

Issue 23754005: Have CharacterData 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
« no previous file with comments | « Source/core/dom/CharacterData.h ('k') | Source/core/dom/Comment.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Comment.h
diff --git a/Source/core/dom/Comment.h b/Source/core/dom/Comment.h
index ed2ce678557ca305c7c0ed54b8c035f76cba57f2..1a4987482c0b3283f724a208f284f592f9dde406 100644
--- a/Source/core/dom/Comment.h
+++ b/Source/core/dom/Comment.h
@@ -31,15 +31,10 @@ 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&);
+ static PassRefPtr<Comment> create(Document&, const String&);
private:
- Comment(Document*, const String&);
+ Comment(Document&, const String&);
virtual String nodeName() const;
virtual NodeType nodeType() const;
« no previous file with comments | « Source/core/dom/CharacterData.h ('k') | Source/core/dom/Comment.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698