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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 class ParseNode : public GarbageCollectedFinalized<ParseNode> { | 53 class ParseNode : public GarbageCollectedFinalized<ParseNode> { |
54 public: | 54 public: |
55 virtual ~ParseNode() { } | 55 virtual ~ParseNode() { } |
56 DEFINE_INLINE_VIRTUAL_TRACE() { } | 56 DEFINE_INLINE_VIRTUAL_TRACE() { } |
57 }; | 57 }; |
58 | 58 |
59 class Expression : public ParseNode { | 59 class Expression : public ParseNode { |
60 WTF_MAKE_NONCOPYABLE(Expression); | 60 WTF_MAKE_NONCOPYABLE(Expression); |
61 public: | 61 public: |
62 Expression(); | 62 Expression(); |
63 virtual ~Expression(); | 63 ~Expression() override; |
64 DECLARE_VIRTUAL_TRACE(); | 64 DECLARE_VIRTUAL_TRACE(); |
65 | 65 |
66 virtual Value evaluate(EvaluationContext&) const = 0; | 66 virtual Value evaluate(EvaluationContext&) const = 0; |
67 | 67 |
68 void addSubExpression(Expression* expr) | 68 void addSubExpression(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); |
(...skipping 20 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 } // namespace XPath | 99 } // namespace XPath |
100 | 100 |
101 } // namespace blink | 101 } // namespace blink |
102 | 102 |
103 #endif // XPathExpressionNode_h | 103 #endif // XPathExpressionNode_h |
OLD | NEW |