summaryrefslogtreecommitdiff
path: root/Source/WebCore/xml/XSLTProcessor.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/xml/XSLTProcessor.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/xml/XSLTProcessor.h')
-rw-r--r--Source/WebCore/xml/XSLTProcessor.h27
1 files changed, 12 insertions, 15 deletions
diff --git a/Source/WebCore/xml/XSLTProcessor.h b/Source/WebCore/xml/XSLTProcessor.h
index 518e1e2af..0792f1ae2 100644
--- a/Source/WebCore/xml/XSLTProcessor.h
+++ b/Source/WebCore/xml/XSLTProcessor.h
@@ -20,18 +20,16 @@
*
*/
-#ifndef XSLTProcessor_h
-#define XSLTProcessor_h
+#pragma once
#if ENABLE(XSLT)
#include "Node.h"
#include "XSLStyleSheet.h"
-#include <wtf/HashMap.h>
-#include <wtf/text/StringHash.h>
-
#include <libxml/parserInternals.h>
#include <libxslt/documents.h>
+#include <wtf/HashMap.h>
+#include <wtf/text/StringHash.h>
namespace WebCore {
@@ -41,21 +39,21 @@ class DocumentFragment;
class XSLTProcessor : public RefCounted<XSLTProcessor> {
public:
- static PassRefPtr<XSLTProcessor> create() { return adoptRef(new XSLTProcessor); }
+ static Ref<XSLTProcessor> create() { return adoptRef(*new XSLTProcessor); }
~XSLTProcessor();
- void setXSLStyleSheet(PassRefPtr<XSLStyleSheet> styleSheet) { m_stylesheet = styleSheet; }
+ void setXSLStyleSheet(RefPtr<XSLStyleSheet>&& styleSheet) { m_stylesheet = WTFMove(styleSheet); }
bool transformToString(Node& source, String& resultMIMEType, String& resultString, String& resultEncoding);
- PassRefPtr<Document> createDocumentFromSource(const String& source, const String& sourceEncoding, const String& sourceMIMEType, Node* sourceNode, Frame* frame);
+ Ref<Document> createDocumentFromSource(const String& source, const String& sourceEncoding, const String& sourceMIMEType, Node* sourceNode, Frame* frame);
// DOM methods
- void importStylesheet(PassRefPtr<Node> style)
+ void importStylesheet(RefPtr<Node>&& style)
{
if (style)
- m_stylesheetRootNode = style;
+ m_stylesheetRootNode = WTFMove(style);
}
- PassRefPtr<DocumentFragment> transformToFragment(Node* source, Document* ouputDoc);
- PassRefPtr<Document> transformToDocument(Node* source);
+ RefPtr<DocumentFragment> transformToFragment(Node* source, Document* ouputDoc);
+ RefPtr<Document> transformToDocument(Node* source);
void setParameter(const String& namespaceURI, const String& localName, const String& value);
String getParameter(const String& namespaceURI, const String& localName) const;
@@ -80,7 +78,6 @@ private:
ParameterMap m_parameters;
};
-}
+} // namespace WebCore
-#endif
-#endif
+#endif // ENABLE(XSLT)