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/XPathEvaluator.h | 40 +++++++++++++++---------------------- 1 file changed, 16 insertions(+), 24 deletions(-) (limited to 'Source/WebCore/xml/XPathEvaluator.h') diff --git a/Source/WebCore/xml/XPathEvaluator.h b/Source/WebCore/xml/XPathEvaluator.h index ca35f2101..4a478548f 100644 --- a/Source/WebCore/xml/XPathEvaluator.h +++ b/Source/WebCore/xml/XPathEvaluator.h @@ -1,6 +1,6 @@ /* * Copyright 2005 Frerich Raabe - * Copyright (C) 2006 Apple Computer, Inc. + * Copyright (C) 2006 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -24,35 +24,27 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef XPathEvaluator_h -#define XPathEvaluator_h +#pragma once -#include -#include -#include +#include "ExceptionOr.h" namespace WebCore { - typedef int ExceptionCode; +class Node; +class XPathExpression; +class XPathNSResolver; +class XPathResult; - class Node; - class XPathExpression; - class XPathNSResolver; - class XPathResult; +class XPathEvaluator : public RefCounted { +public: + static Ref create() { return adoptRef(*new XPathEvaluator); } - class XPathEvaluator : public RefCounted { - public: - static PassRefPtr create() { return adoptRef(new XPathEvaluator); } - - PassRefPtr createExpression(const String& expression, XPathNSResolver*, ExceptionCode&); - PassRefPtr createNSResolver(Node* nodeResolver); - PassRefPtr evaluate(const String& expression, Node* contextNode, - XPathNSResolver*, unsigned short type, XPathResult*, ExceptionCode&); + ExceptionOr> createExpression(const String& expression, RefPtr&&); + Ref createNSResolver(Node* nodeResolver); + ExceptionOr> evaluate(const String& expression, Node* contextNode, RefPtr&&, unsigned short type, XPathResult*); - private: - XPathEvaluator() { } - }; +private: + XPathEvaluator() = default; +}; } - -#endif // XPathEvaluator_h -- cgit v1.2.1