Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(471)

Side by Side Diff: Source/core/xml/XPathPath.cpp

Issue 937653002: InlinedVisitor: Migrate xml to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/xml/XPathPath.h ('k') | Source/core/xml/XPathPredicate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 m_predicates.swap(predicates); 43 m_predicates.swap(predicates);
44 setIsContextNodeSensitive(m_expr->isContextNodeSensitive()); 44 setIsContextNodeSensitive(m_expr->isContextNodeSensitive());
45 setIsContextPositionSensitive(m_expr->isContextPositionSensitive()); 45 setIsContextPositionSensitive(m_expr->isContextPositionSensitive());
46 setIsContextSizeSensitive(m_expr->isContextSizeSensitive()); 46 setIsContextSizeSensitive(m_expr->isContextSizeSensitive());
47 } 47 }
48 48
49 Filter::~Filter() 49 Filter::~Filter()
50 { 50 {
51 } 51 }
52 52
53 void Filter::trace(Visitor* visitor) 53 DEFINE_TRACE(Filter)
54 { 54 {
55 visitor->trace(m_expr); 55 visitor->trace(m_expr);
56 visitor->trace(m_predicates); 56 visitor->trace(m_predicates);
57 Expression::trace(visitor); 57 Expression::trace(visitor);
58 } 58 }
59 59
60 Value Filter::evaluate(EvaluationContext& evaluationContext) const 60 Value Filter::evaluate(EvaluationContext& evaluationContext) const
61 { 61 {
62 Value v = m_expr->evaluate(evaluationContext); 62 Value v = m_expr->evaluate(evaluationContext);
63 63
(...skipping 26 matching lines...) Expand all
90 setIsContextNodeSensitive(true); 90 setIsContextNodeSensitive(true);
91 } 91 }
92 92
93 LocationPath::~LocationPath() 93 LocationPath::~LocationPath()
94 { 94 {
95 #if !ENABLE(OILPAN) 95 #if !ENABLE(OILPAN)
96 deleteAllValues(m_steps); 96 deleteAllValues(m_steps);
97 #endif 97 #endif
98 } 98 }
99 99
100 void LocationPath::trace(Visitor* visitor) 100 DEFINE_TRACE(LocationPath)
101 { 101 {
102 #if ENABLE(OILPAN) 102 #if ENABLE(OILPAN)
103 visitor->trace(m_steps); 103 visitor->trace(m_steps);
104 #endif 104 #endif
105 Expression::trace(visitor); 105 Expression::trace(visitor);
106 } 106 }
107 107
108 Value LocationPath::evaluate(EvaluationContext& evaluationContext) const 108 Value LocationPath::evaluate(EvaluationContext& evaluationContext) const
109 { 109 {
110 EvaluationContext clonedContext = evaluationContext; 110 EvaluationContext clonedContext = evaluationContext;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 { 210 {
211 setIsContextNodeSensitive(filter->isContextNodeSensitive()); 211 setIsContextNodeSensitive(filter->isContextNodeSensitive());
212 setIsContextPositionSensitive(filter->isContextPositionSensitive()); 212 setIsContextPositionSensitive(filter->isContextPositionSensitive());
213 setIsContextSizeSensitive(filter->isContextSizeSensitive()); 213 setIsContextSizeSensitive(filter->isContextSizeSensitive());
214 } 214 }
215 215
216 Path::~Path() 216 Path::~Path()
217 { 217 {
218 } 218 }
219 219
220 void Path::trace(Visitor* visitor) 220 DEFINE_TRACE(Path)
221 { 221 {
222 visitor->trace(m_filter); 222 visitor->trace(m_filter);
223 visitor->trace(m_path); 223 visitor->trace(m_path);
224 Expression::trace(visitor); 224 Expression::trace(visitor);
225 } 225 }
226 226
227 Value Path::evaluate(EvaluationContext& context) const 227 Value Path::evaluate(EvaluationContext& context) const
228 { 228 {
229 Value v = m_filter->evaluate(context); 229 Value v = m_filter->evaluate(context);
230 230
231 NodeSet& nodes = v.modifiableNodeSet(context); 231 NodeSet& nodes = v.modifiableNodeSet(context);
232 m_path->evaluate(context, nodes); 232 m_path->evaluate(context, nodes);
233 233
234 return v; 234 return v;
235 } 235 }
236 236
237 } 237 }
238 } 238 }
OLDNEW
« no previous file with comments | « Source/core/xml/XPathPath.h ('k') | Source/core/xml/XPathPredicate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698