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 22 matching lines...) Expand all Loading... |
33 #include "wtf/Vector.h" | 33 #include "wtf/Vector.h" |
34 #include "wtf/text/StringHash.h" | 34 #include "wtf/text/StringHash.h" |
35 | 35 |
36 namespace WebCore { | 36 namespace WebCore { |
37 | 37 |
38 namespace XPath { | 38 namespace XPath { |
39 | 39 |
40 struct EvaluationContext { | 40 struct EvaluationContext { |
41 WTF_MAKE_FAST_ALLOCATED; | 41 WTF_MAKE_FAST_ALLOCATED; |
42 public: | 42 public: |
43 RefPtr<Node> node; | 43 RefPtrWillBePersistent<Node> node; |
44 unsigned long size; | 44 unsigned long size; |
45 unsigned long position; | 45 unsigned long position; |
46 HashMap<String, String> variableBindings; | 46 HashMap<String, String> variableBindings; |
47 | 47 |
48 bool hadTypeConversionError; | 48 bool hadTypeConversionError; |
49 }; | 49 }; |
50 | 50 |
51 class ParseNode : public NoBaseWillBeGarbageCollectedFinalized<ParseNode
> { | 51 class ParseNode : public NoBaseWillBeGarbageCollectedFinalized<ParseNode
> { |
52 public: | 52 public: |
53 virtual ~ParseNode() { } | 53 virtual ~ParseNode() { } |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 // EXPRESSION_H | 103 #endif // EXPRESSION_H |
OLD | NEW |