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

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

Issue 1854543002: Oilpan: Remove WillBe types (part 7) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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 #include "bindings/core/v8/ExceptionState.h" 29 #include "bindings/core/v8/ExceptionState.h"
30 #include "core/dom/Document.h" 30 #include "core/dom/Document.h"
31 #include "core/dom/ExceptionCode.h" 31 #include "core/dom/ExceptionCode.h"
32 #include "core/xml/XPathEvaluator.h" 32 #include "core/xml/XPathEvaluator.h"
33 #include "core/xml/XPathExpressionNode.h" 33 #include "core/xml/XPathExpressionNode.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 using namespace XPath; 37 using namespace XPath;
38 38
39 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(XPathResult);
40
41 XPathResult::XPathResult(EvaluationContext& context, const Value& value) 39 XPathResult::XPathResult(EvaluationContext& context, 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 switch (m_value.getType()) { 44 switch (m_value.getType()) {
47 case Value::BooleanValue: 45 case Value::BooleanValue:
48 m_resultType = BOOLEAN_TYPE; 46 m_resultType = BOOLEAN_TYPE;
49 return; 47 return;
50 case Value::NumberValue: 48 case Value::NumberValue:
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 } 210 }
213 211
214 const NodeSet& nodes = m_value.toNodeSet(0); 212 const NodeSet& nodes = m_value.toNodeSet(0);
215 if (index >= nodes.size()) 213 if (index >= nodes.size())
216 return nullptr; 214 return nullptr;
217 215
218 return nodes[index]; 216 return nodes[index];
219 } 217 }
220 218
221 } // namespace blink 219 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/xml/XPathResult.h ('k') | third_party/WebKit/Source/core/xml/XPathStep.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698