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

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

Issue 169293002: Oilpan: Remove GC_INFO_{DEFINE,DECLARE} macros (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixheaptest Created 6 years, 9 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/XPathResult.h ('k') | Source/core/xml/XSLTProcessor.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. All rights reserved. 3 * Copyright (C) 2006, 2009 Apple Inc. All rights reserved.
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 18 matching lines...) Expand all
29 29
30 #include "bindings/v8/ExceptionState.h" 30 #include "bindings/v8/ExceptionState.h"
31 #include "core/dom/Document.h" 31 #include "core/dom/Document.h"
32 #include "core/dom/ExceptionCode.h" 32 #include "core/dom/ExceptionCode.h"
33 #include "core/xml/XPathEvaluator.h" 33 #include "core/xml/XPathEvaluator.h"
34 34
35 namespace WebCore { 35 namespace WebCore {
36 36
37 using namespace XPath; 37 using namespace XPath;
38 38
39 DEFINE_GC_INFO(XPathResult);
40
41 XPathResult::XPathResult(Document* document, const Value& value) 39 XPathResult::XPathResult(Document* document, const Value& value)
42 : m_value(value) 40 : m_value(value)
43 , m_nodeSetPosition(0) 41 , m_nodeSetPosition(0)
44 , m_domTreeVersion(0) 42 , m_domTreeVersion(0)
45 { 43 {
46 ScriptWrappable::init(this); 44 ScriptWrappable::init(this);
47 switch (m_value.type()) { 45 switch (m_value.type()) {
48 case Value::BooleanValue: 46 case Value::BooleanValue:
49 m_resultType = BOOLEAN_TYPE; 47 m_resultType = BOOLEAN_TYPE;
50 return; 48 return;
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 } 208 }
211 209
212 const NodeSet& nodes = m_value.toNodeSet(); 210 const NodeSet& nodes = m_value.toNodeSet();
213 if (index >= nodes.size()) 211 if (index >= nodes.size())
214 return 0; 212 return 0;
215 213
216 return nodes[index]; 214 return nodes[index];
217 } 215 }
218 216
219 } 217 }
OLDNEW
« no previous file with comments | « Source/core/xml/XPathResult.h ('k') | Source/core/xml/XSLTProcessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698