OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2005 Frerich Raabe <raabe@kde.org> | 2 * Copyright (C) 2005 Frerich Raabe <raabe@kde.org> |
3 * Copyright (C) 2006, 2009 Apple Inc. | 3 * Copyright (C) 2006, 2009 Apple 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 public: | 54 public: |
55 virtual ~ParseNode() { } | 55 virtual ~ParseNode() { } |
56 virtual void trace(Visitor*) { } | 56 virtual void trace(Visitor*) { } |
57 }; | 57 }; |
58 | 58 |
59 class Expression : public ParseNode { | 59 class Expression : public ParseNode { |
60 WTF_MAKE_NONCOPYABLE(Expression); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 60 WTF_MAKE_NONCOPYABLE(Expression); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
61 public: | 61 public: |
62 Expression(); | 62 Expression(); |
63 virtual ~Expression(); | 63 virtual ~Expression(); |
64 virtual void trace(Visitor*) OVERRIDE; | 64 virtual void trace(Visitor*) override; |
65 | 65 |
66 virtual Value evaluate(EvaluationContext&) const = 0; | 66 virtual Value evaluate(EvaluationContext&) const = 0; |
67 | 67 |
68 void addSubExpression(PassOwnPtrWillBeRawPtr<Expression> expr) | 68 void addSubExpression(PassOwnPtrWillBeRawPtr<Expression> expr) |
69 { | 69 { |
70 m_isContextNodeSensitive |= expr->m_isContextNodeSensitive; | 70 m_isContextNodeSensitive |= expr->m_isContextNodeSensitive; |
71 m_isContextPositionSensitive |= expr->m_isContextPositionSensitive; | 71 m_isContextPositionSensitive |= expr->m_isContextPositionSensitive; |
72 m_isContextSizeSensitive |= expr->m_isContextSizeSensitive; | 72 m_isContextSizeSensitive |= expr->m_isContextSizeSensitive; |
73 m_subExpressions.append(expr); | 73 m_subExpressions.append(expr); |
74 } | 74 } |
(...skipping 19 matching lines...) Expand all Loading... |
94 bool m_isContextNodeSensitive; | 94 bool m_isContextNodeSensitive; |
95 bool m_isContextPositionSensitive; | 95 bool m_isContextPositionSensitive; |
96 bool m_isContextSizeSensitive; | 96 bool m_isContextSizeSensitive; |
97 }; | 97 }; |
98 | 98 |
99 } | 99 } |
100 | 100 |
101 } | 101 } |
102 | 102 |
103 #endif // XPathExpressionNode_h | 103 #endif // XPathExpressionNode_h |
OLD | NEW |