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 27 matching lines...) Expand all Loading... |
38 class ExceptionState; | 38 class ExceptionState; |
39 class Node; | 39 class Node; |
40 class XPathNSResolver; | 40 class XPathNSResolver; |
41 class XPathResult; | 41 class XPathResult; |
42 | 42 |
43 namespace XPath { | 43 namespace XPath { |
44 class Expression; | 44 class Expression; |
45 } | 45 } |
46 | 46 |
47 class XPathExpression : public RefCountedWillBeGarbageCollectedFinalized<XPathEx
pression>, public ScriptWrappable { | 47 class XPathExpression : public RefCountedWillBeGarbageCollectedFinalized<XPathEx
pression>, public ScriptWrappable { |
48 DECLARE_GC_INFO; | |
49 public: | 48 public: |
50 static PassRefPtrWillBeRawPtr<XPathExpression> create() | 49 static PassRefPtrWillBeRawPtr<XPathExpression> create() |
51 { | 50 { |
52 return adoptRefWillBeNoop(new XPathExpression); | 51 return adoptRefWillBeNoop(new XPathExpression); |
53 } | 52 } |
54 ~XPathExpression(); | 53 ~XPathExpression(); |
55 | 54 |
56 static PassRefPtrWillBeRawPtr<XPathExpression> createExpression(const String
& expression, PassRefPtrWillBeRawPtr<XPathNSResolver>, ExceptionState&); | 55 static PassRefPtrWillBeRawPtr<XPathExpression> createExpression(const String
& expression, PassRefPtrWillBeRawPtr<XPathNSResolver>, ExceptionState&); |
57 PassRefPtrWillBeRawPtr<XPathResult> evaluate(Node* contextNode, unsigned sho
rt type, XPathResult*, ExceptionState&); | 56 PassRefPtrWillBeRawPtr<XPathResult> evaluate(Node* contextNode, unsigned sho
rt type, XPathResult*, ExceptionState&); |
58 | 57 |
59 void trace(Visitor*) { } | 58 void trace(Visitor*) { } |
60 | 59 |
61 private: | 60 private: |
62 XPathExpression() | 61 XPathExpression() |
63 { | 62 { |
64 ScriptWrappable::init(this); | 63 ScriptWrappable::init(this); |
65 } | 64 } |
66 | 65 |
67 XPath::Expression* m_topExpression; | 66 XPath::Expression* m_topExpression; |
68 }; | 67 }; |
69 | 68 |
70 } | 69 } |
71 | 70 |
72 #endif // XPathExpression_h | 71 #endif // XPathExpression_h |
OLD | NEW |