From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/dom/Comment.cpp | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'Source/WebCore/dom/Comment.cpp') diff --git a/Source/WebCore/dom/Comment.cpp b/Source/WebCore/dom/Comment.cpp index 51300e9e8..731436894 100644 --- a/Source/WebCore/dom/Comment.cpp +++ b/Source/WebCore/dom/Comment.cpp @@ -31,19 +31,14 @@ inline Comment::Comment(Document& document, const String& text) { } -PassRefPtr Comment::create(Document& document, const String& text) +Ref Comment::create(Document& document, const String& text) { - return adoptRef(new Comment(document, text)); -} - -PassRefPtr Comment::create(ScriptExecutionContext& context, const String& text) -{ - return adoptRef(new Comment(toDocument(context), text)); + return adoptRef(*new Comment(document, text)); } String Comment::nodeName() const { - return commentAtom.string(); + return ASCIILiteral("#comment"); } Node::NodeType Comment::nodeType() const @@ -51,9 +46,9 @@ Node::NodeType Comment::nodeType() const return COMMENT_NODE; } -PassRefPtr Comment::cloneNode(bool /*deep*/) +Ref Comment::cloneNodeInternal(Document& targetDocument, CloningOperation) { - return create(document(), data()); + return create(targetDocument, data()); } bool Comment::childTypeAllowed(NodeType) const -- cgit v1.2.1