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/CDATASection.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Source/WebCore/dom/CDATASection.cpp') diff --git a/Source/WebCore/dom/CDATASection.cpp b/Source/WebCore/dom/CDATASection.cpp index 4b3972aab..598530f7c 100644 --- a/Source/WebCore/dom/CDATASection.cpp +++ b/Source/WebCore/dom/CDATASection.cpp @@ -31,14 +31,14 @@ inline CDATASection::CDATASection(Document& document, const String& data) { } -PassRefPtr CDATASection::create(Document& document, const String& data) +Ref CDATASection::create(Document& document, const String& data) { - return adoptRef(new CDATASection(document, data)); + return adoptRef(*new CDATASection(document, data)); } String CDATASection::nodeName() const { - return "#cdata-section"; + return ASCIILiteral("#cdata-section"); } Node::NodeType CDATASection::nodeType() const @@ -46,9 +46,9 @@ Node::NodeType CDATASection::nodeType() const return CDATA_SECTION_NODE; } -PassRefPtr CDATASection::cloneNode(bool /*deep*/) +Ref CDATASection::cloneNodeInternal(Document& targetDocument, CloningOperation) { - return create(document(), data()); + return create(targetDocument, data()); } bool CDATASection::childTypeAllowed(NodeType) const @@ -56,7 +56,7 @@ bool CDATASection::childTypeAllowed(NodeType) const return false; } -PassRefPtr CDATASection::virtualCreate(const String& data) +Ref CDATASection::virtualCreate(const String& data) { return create(document(), data); } -- cgit v1.2.1