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

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

Issue 26709019: Vector stores Predicate object as OwnPtr instead of raw pointer in XPath. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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
« no previous file with comments | « Source/core/xml/XPathParser.cpp ('k') | Source/core/xml/XPathPath.cpp » ('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 * 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 21 matching lines...) Expand all
32 32
33 namespace WebCore { 33 namespace WebCore {
34 34
35 namespace XPath { 35 namespace XPath {
36 36
37 class Predicate; 37 class Predicate;
38 class Step; 38 class Step;
39 39
40 class Filter : public Expression { 40 class Filter : public Expression {
41 public: 41 public:
42 Filter(PassOwnPtr<Expression>, const Vector<Predicate*>& = Vector<Pr edicate*>()); 42 Filter(PassOwnPtr<Expression>, Vector<OwnPtr<Predicate> >&);
43 virtual ~Filter(); 43 virtual ~Filter();
44 44
45 virtual Value evaluate() const; 45 virtual Value evaluate() const;
46 46
47 private: 47 private:
48 virtual Value::Type resultType() const { return Value::NodeSetValue; } 48 virtual Value::Type resultType() const { return Value::NodeSetValue; }
49 49
50 OwnPtr<Expression> m_expr; 50 OwnPtr<Expression> m_expr;
51 Vector<OwnPtr<Predicate> > m_predicates; 51 Vector<OwnPtr<Predicate> > m_predicates;
52 }; 52 };
(...skipping 28 matching lines...) Expand all
81 virtual Value::Type resultType() const { return Value::NodeSetValue; } 81 virtual Value::Type resultType() const { return Value::NodeSetValue; }
82 82
83 Filter* m_filter; 83 Filter* m_filter;
84 LocationPath* m_path; 84 LocationPath* m_path;
85 }; 85 };
86 86
87 } 87 }
88 } 88 }
89 89
90 #endif // XPath_Path_H 90 #endif // XPath_Path_H
OLDNEW
« no previous file with comments | « Source/core/xml/XPathParser.cpp ('k') | Source/core/xml/XPathPath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698