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

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

Issue 1224823006: Fix virtual/override/final usage in Source/core/xml/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« no previous file with comments | « Source/core/xml/XPathPredicate.h ('k') | Source/core/xml/XPathVariableReference.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 * 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 Kind m_kind; 86 Kind m_kind;
87 AtomicString m_data; 87 AtomicString m_data;
88 AtomicString m_namespaceURI; 88 AtomicString m_namespaceURI;
89 89
90 // When possible, we merge some or all predicates with node test for bet ter performance. 90 // When possible, we merge some or all predicates with node test for bet ter performance.
91 HeapVector<Member<Predicate>> m_mergedPredicates; 91 HeapVector<Member<Predicate>> m_mergedPredicates;
92 }; 92 };
93 93
94 Step(Axis, const NodeTest&); 94 Step(Axis, const NodeTest&);
95 Step(Axis, const NodeTest&, HeapVector<Member<Predicate>>&); 95 Step(Axis, const NodeTest&, HeapVector<Member<Predicate>>&);
96 virtual ~Step(); 96 ~Step() override;
97 DECLARE_VIRTUAL_TRACE(); 97 DECLARE_VIRTUAL_TRACE();
98 98
99 void optimize(); 99 void optimize();
100 100
101 void evaluate(EvaluationContext&, Node* context, NodeSet&) const; 101 void evaluate(EvaluationContext&, Node* context, NodeSet&) const;
102 102
103 Axis axis() const { return m_axis; } 103 Axis axis() const { return m_axis; }
104 const NodeTest& nodeTest() const { return *m_nodeTest; } 104 const NodeTest& nodeTest() const { return *m_nodeTest; }
105 105
106 private: 106 private:
(...skipping 10 matching lines...) Expand all
117 HeapVector<Member<Predicate>> m_predicates; 117 HeapVector<Member<Predicate>> m_predicates;
118 }; 118 };
119 119
120 bool optimizeStepPair(Step*, Step*); 120 bool optimizeStepPair(Step*, Step*);
121 121
122 } // namespace XPath 122 } // namespace XPath
123 123
124 } // namespace blink 124 } // namespace blink
125 125
126 #endif // XPathStep_h 126 #endif // XPathStep_h
OLDNEW
« no previous file with comments | « Source/core/xml/XPathPredicate.h ('k') | Source/core/xml/XPathVariableReference.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698