| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 Expression(); | 65 Expression(); |
| 66 ~Expression() override; | 66 ~Expression() override; |
| 67 DECLARE_VIRTUAL_TRACE(); | 67 DECLARE_VIRTUAL_TRACE(); |
| 68 | 68 |
| 69 virtual Value evaluate(EvaluationContext&) const = 0; | 69 virtual Value evaluate(EvaluationContext&) const = 0; |
| 70 | 70 |
| 71 void addSubExpression(Expression* expr) { | 71 void addSubExpression(Expression* expr) { |
| 72 m_isContextNodeSensitive |= expr->m_isContextNodeSensitive; | 72 m_isContextNodeSensitive |= expr->m_isContextNodeSensitive; |
| 73 m_isContextPositionSensitive |= expr->m_isContextPositionSensitive; | 73 m_isContextPositionSensitive |= expr->m_isContextPositionSensitive; |
| 74 m_isContextSizeSensitive |= expr->m_isContextSizeSensitive; | 74 m_isContextSizeSensitive |= expr->m_isContextSizeSensitive; |
| 75 m_subExpressions.append(expr); | 75 m_subExpressions.push_back(expr); |
| 76 } | 76 } |
| 77 | 77 |
| 78 bool isContextNodeSensitive() const { return m_isContextNodeSensitive; } | 78 bool isContextNodeSensitive() const { return m_isContextNodeSensitive; } |
| 79 bool isContextPositionSensitive() const { | 79 bool isContextPositionSensitive() const { |
| 80 return m_isContextPositionSensitive; | 80 return m_isContextPositionSensitive; |
| 81 } | 81 } |
| 82 bool isContextSizeSensitive() const { return m_isContextSizeSensitive; } | 82 bool isContextSizeSensitive() const { return m_isContextSizeSensitive; } |
| 83 void setIsContextNodeSensitive(bool value) { | 83 void setIsContextNodeSensitive(bool value) { |
| 84 m_isContextNodeSensitive = value; | 84 m_isContextNodeSensitive = value; |
| 85 } | 85 } |
| (...skipping 20 matching lines...) Expand all Loading... |
| 106 bool m_isContextNodeSensitive; | 106 bool m_isContextNodeSensitive; |
| 107 bool m_isContextPositionSensitive; | 107 bool m_isContextPositionSensitive; |
| 108 bool m_isContextSizeSensitive; | 108 bool m_isContextSizeSensitive; |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 } // namespace XPath | 111 } // namespace XPath |
| 112 | 112 |
| 113 } // namespace blink | 113 } // namespace blink |
| 114 | 114 |
| 115 #endif // XPathExpressionNode_h | 115 #endif // XPathExpressionNode_h |
| OLD | NEW |