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

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

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed config.gni. Minor cleanups. Created 6 years, 5 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
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. All rights reserved. 3 * Copyright (C) 2006, 2009 Apple Inc. All rights reserved.
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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 evaluationContext.size = nodes.size(); 147 evaluationContext.size = nodes.size();
148 evaluationContext.position = j + 1; 148 evaluationContext.position = j + 1;
149 if (predicate->evaluate(evaluationContext)) 149 if (predicate->evaluate(evaluationContext))
150 newNodes->append(node); 150 newNodes->append(node);
151 } 151 }
152 152
153 nodes.swap(*newNodes); 153 nodes.swap(*newNodes);
154 } 154 }
155 } 155 }
156 156
157 #if ASSERT_ENABLED 157 #if ENABLE(ASSERT)
158 static inline Node::NodeType primaryNodeType(Step::Axis axis) 158 static inline Node::NodeType primaryNodeType(Step::Axis axis)
159 { 159 {
160 switch (axis) { 160 switch (axis) {
161 case Step::AttributeAxis: 161 case Step::AttributeAxis:
162 return Node::ATTRIBUTE_NODE; 162 return Node::ATTRIBUTE_NODE;
163 default: 163 default:
164 return Node::ELEMENT_NODE; 164 return Node::ELEMENT_NODE;
165 } 165 }
166 } 166 }
167 #endif 167 #endif
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 nodes.markSorted(false); 434 nodes.markSorted(false);
435 return; 435 return;
436 } 436 }
437 } 437 }
438 ASSERT_NOT_REACHED(); 438 ASSERT_NOT_REACHED();
439 } 439 }
440 440
441 } 441 }
442 442
443 } 443 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698