diff options
Diffstat (limited to 'WebCore/dom/ProcessingInstruction.cpp')
-rw-r--r-- | WebCore/dom/ProcessingInstruction.cpp | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/WebCore/dom/ProcessingInstruction.cpp b/WebCore/dom/ProcessingInstruction.cpp index 8404481..806bf92 100644 --- a/WebCore/dom/ProcessingInstruction.cpp +++ b/WebCore/dom/ProcessingInstruction.cpp @@ -1,6 +1,6 @@ /* * Copyright (C) 2000 Peter Kelly (pmk@post.com) - * Copyright (C) 2006, 2008, 2009 Apple Inc. All rights reserved. + * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -35,10 +35,8 @@ namespace WebCore { -inline ProcessingInstruction::ProcessingInstruction(Document* document, const String& target, const String& data) - : ContainerNode(document) - , m_target(target) - , m_data(data) +ProcessingInstruction::ProcessingInstruction(Document* doc) + : ContainerNode(doc) , m_cachedSheet(0) , m_loading(false) , m_alternate(false) @@ -48,9 +46,17 @@ inline ProcessingInstruction::ProcessingInstruction(Document* document, const St { } -PassRefPtr<ProcessingInstruction> ProcessingInstruction::create(Document* document, const String& target, const String& data) +ProcessingInstruction::ProcessingInstruction(Document* doc, const String& target, const String& data) + : ContainerNode(doc) + , m_target(target) + , m_data(data) + , m_cachedSheet(0) + , m_loading(false) + , m_alternate(false) +#if ENABLE(XSLT) + , m_isXSL(false) +#endif { - return adoptRef(new ProcessingInstruction(document, target, data)); } ProcessingInstruction::~ProcessingInstruction() @@ -89,9 +95,8 @@ void ProcessingInstruction::setNodeValue(const String& nodeValue, ExceptionCode& PassRefPtr<Node> ProcessingInstruction::cloneNode(bool /*deep*/) { - // FIXME: Is it a problem that this does not copy m_localHref? - // What about other data members? - return create(document(), m_target, m_data); + // ### copy m_localHref + return new ProcessingInstruction(document(), m_target, m_data); } // DOM Section 1.1.1 |