| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright 2005 Frerich Raabe <raabe@kde.org> | 2  * Copyright 2005 Frerich Raabe <raabe@kde.org> | 
| 3  * Copyright (C) 2006 Apple Computer, Inc. | 3  * Copyright (C) 2006 Apple Computer, Inc. | 
| 4  * | 4  * | 
| 5  * Redistribution and use in source and binary forms, with or without | 5  * Redistribution and use in source and binary forms, with or without | 
| 6  * modification, are permitted provided that the following conditions | 6  * modification, are permitted provided that the following conditions | 
| 7  * are met: | 7  * are met: | 
| 8  * | 8  * | 
| 9  * 1. Redistributions of source code must retain the above copyright | 9  * 1. Redistributions of source code must retain the above copyright | 
| 10  *    notice, this list of conditions and the following disclaimer. | 10  *    notice, this list of conditions and the following disclaimer. | 
| (...skipping 10 matching lines...) Expand all  Loading... | 
| 21  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 21  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 
| 22  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 
| 23  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 23  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 
| 24  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 
| 25  */ | 25  */ | 
| 26 | 26 | 
| 27 #ifndef XPathExpression_h | 27 #ifndef XPathExpression_h | 
| 28 #define XPathExpression_h | 28 #define XPathExpression_h | 
| 29 | 29 | 
| 30 #include "bindings/v8/ScriptWrappable.h" | 30 #include "bindings/v8/ScriptWrappable.h" | 
|  | 31 #include "heap/Handle.h" | 
| 31 #include "wtf/Forward.h" | 32 #include "wtf/Forward.h" | 
| 32 #include "wtf/PassRefPtr.h" | 33 #include "wtf/PassRefPtr.h" | 
| 33 #include "wtf/RefCounted.h" | 34 #include "wtf/RefCounted.h" | 
| 34 | 35 | 
| 35 namespace WebCore { | 36 namespace WebCore { | 
| 36 | 37 | 
| 37 class ExceptionState; | 38 class ExceptionState; | 
| 38 class Node; | 39 class Node; | 
| 39 class XPathNSResolver; | 40 class XPathNSResolver; | 
| 40 class XPathResult; | 41 class XPathResult; | 
| 41 | 42 | 
| 42 namespace XPath { | 43 namespace XPath { | 
| 43 class Expression; | 44 class Expression; | 
| 44 } | 45 } | 
| 45 | 46 | 
| 46 class XPathExpression : public RefCounted<XPathExpression>, public ScriptWrappab
    le { | 47 class XPathExpression : public RefCountedWillBeGarbageCollectedFinalized<XPathEx
    pression>, public ScriptWrappable { | 
|  | 48     DECLARE_GC_INFO; | 
| 47 public: | 49 public: | 
| 48     static PassRefPtr<XPathExpression> create() { return adoptRef(new XPathExpre
    ssion); } | 50     static PassRefPtrWillBeRawPtr<XPathExpression> create() | 
|  | 51     { | 
|  | 52         return adoptRefWillBeNoop(new XPathExpression); | 
|  | 53     } | 
| 49     ~XPathExpression(); | 54     ~XPathExpression(); | 
| 50 | 55 | 
| 51     static PassRefPtr<XPathExpression> createExpression(const String& expression
    , PassRefPtr<XPathNSResolver>, ExceptionState&); | 56     static PassRefPtrWillBeRawPtr<XPathExpression> createExpression(const String
    & expression, PassRefPtrWillBeRawPtr<XPathNSResolver>, ExceptionState&); | 
| 52     PassRefPtr<XPathResult> evaluate(Node* contextNode, unsigned short type, XPa
    thResult*, ExceptionState&); | 57     PassRefPtrWillBeRawPtr<XPathResult> evaluate(Node* contextNode, unsigned sho
    rt type, XPathResult*, ExceptionState&); | 
|  | 58 | 
|  | 59     void trace(Visitor*) { } | 
| 53 | 60 | 
| 54 private: | 61 private: | 
| 55     XPathExpression() | 62     XPathExpression() | 
| 56     { | 63     { | 
| 57         ScriptWrappable::init(this); | 64         ScriptWrappable::init(this); | 
| 58     } | 65     } | 
| 59 | 66 | 
| 60     XPath::Expression* m_topExpression; | 67     XPath::Expression* m_topExpression; | 
| 61 }; | 68 }; | 
| 62 | 69 | 
| 63 } | 70 } | 
| 64 | 71 | 
| 65 #endif // XPathExpression_h | 72 #endif // XPathExpression_h | 
| OLD | NEW | 
|---|