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/xml/XSLTProcessor.h | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) (limited to 'Source/WebCore/xml/XSLTProcessor.h') 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 -#include - #include #include +#include +#include namespace WebCore { @@ -41,21 +39,21 @@ class DocumentFragment; class XSLTProcessor : public RefCounted { public: - static PassRefPtr create() { return adoptRef(new XSLTProcessor); } + static Ref create() { return adoptRef(*new XSLTProcessor); } ~XSLTProcessor(); - void setXSLStyleSheet(PassRefPtr styleSheet) { m_stylesheet = styleSheet; } + void setXSLStyleSheet(RefPtr&& styleSheet) { m_stylesheet = WTFMove(styleSheet); } bool transformToString(Node& source, String& resultMIMEType, String& resultString, String& resultEncoding); - PassRefPtr createDocumentFromSource(const String& source, const String& sourceEncoding, const String& sourceMIMEType, Node* sourceNode, Frame* frame); + Ref createDocumentFromSource(const String& source, const String& sourceEncoding, const String& sourceMIMEType, Node* sourceNode, Frame* frame); // DOM methods - void importStylesheet(PassRefPtr style) + void importStylesheet(RefPtr&& style) { if (style) - m_stylesheetRootNode = style; + m_stylesheetRootNode = WTFMove(style); } - PassRefPtr transformToFragment(Node* source, Document* ouputDoc); - PassRefPtr transformToDocument(Node* source); + RefPtr transformToFragment(Node* source, Document* ouputDoc); + RefPtr 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) -- cgit v1.2.1