OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2000 Frederik Holljen (frederik.holljen@hig.no) | 3 * Copyright (C) 2000 Frederik Holljen (frederik.holljen@hig.no) |
4 * Copyright (C) 2001 Peter Kelly (pmk@post.com) | 4 * Copyright (C) 2001 Peter Kelly (pmk@post.com) |
5 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
6 * Copyright (C) 2004, 2008, 2009 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2008, 2009 Apple Inc. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 static PassRefPtrWillBeRawPtr<NodeFilter> create(PassRefPtrWillBeRawPtr<Node
FilterCondition> condition) | 70 static PassRefPtrWillBeRawPtr<NodeFilter> create(PassRefPtrWillBeRawPtr<Node
FilterCondition> condition) |
71 { | 71 { |
72 return adoptRefWillBeNoop(new NodeFilter(condition)); | 72 return adoptRefWillBeNoop(new NodeFilter(condition)); |
73 } | 73 } |
74 | 74 |
75 static PassRefPtrWillBeRawPtr<NodeFilter> create() | 75 static PassRefPtrWillBeRawPtr<NodeFilter> create() |
76 { | 76 { |
77 return adoptRefWillBeNoop(new NodeFilter()); | 77 return adoptRefWillBeNoop(new NodeFilter()); |
78 } | 78 } |
79 | 79 |
80 short acceptNode(Node*, ExceptionState&) const; | 80 unsigned acceptNode(Node*, ExceptionState&) const; |
81 | 81 |
82 void setCondition(PassRefPtrWillBeRawPtr<NodeFilterCondition> condition) | 82 void setCondition(PassRefPtrWillBeRawPtr<NodeFilterCondition> condition) |
83 { | 83 { |
84 m_condition = condition; | 84 m_condition = condition; |
85 } | 85 } |
86 | 86 |
87 DECLARE_TRACE(); | 87 DECLARE_TRACE(); |
88 | 88 |
89 private: | 89 private: |
90 explicit NodeFilter(PassRefPtrWillBeRawPtr<NodeFilterCondition> condition) :
m_condition(condition) { } | 90 explicit NodeFilter(PassRefPtrWillBeRawPtr<NodeFilterCondition> condition) :
m_condition(condition) { } |
91 | 91 |
92 NodeFilter() { } | 92 NodeFilter() { } |
93 | 93 |
94 RefPtrWillBeMember<NodeFilterCondition> m_condition; | 94 RefPtrWillBeMember<NodeFilterCondition> m_condition; |
95 }; | 95 }; |
96 | 96 |
97 } // namespace blink | 97 } // namespace blink |
98 | 98 |
99 #endif // NodeFilter_h | 99 #endif // NodeFilter_h |
OLD | NEW |