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

Unified Diff: Source/core/xml/XPathStep.cpp

Issue 968293002: Fix template angle bracket syntax in xml (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/xml/XPathStep.h ('k') | Source/core/xml/XSLStyleSheet.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/XPathStep.cpp
diff --git a/Source/core/xml/XPathStep.cpp b/Source/core/xml/XPathStep.cpp
index a204422fcb4cb32b702e93bf441c222981bbd8e3..6327886e4a2831032aaf43e376662b80de4e8a2c 100644
--- a/Source/core/xml/XPathStep.cpp
+++ b/Source/core/xml/XPathStep.cpp
@@ -45,7 +45,7 @@ Step::Step(Axis axis, const NodeTest& nodeTest)
{
}
-Step::Step(Axis axis, const NodeTest& nodeTest, WillBeHeapVector<OwnPtrWillBeMember<Predicate> >& predicates)
+Step::Step(Axis axis, const NodeTest& nodeTest, WillBeHeapVector<OwnPtrWillBeMember<Predicate>>& predicates)
: m_axis(axis)
, m_nodeTest(adoptPtrWillBeNoop(new NodeTest(nodeTest)))
{
@@ -72,7 +72,7 @@ void Step::optimize()
// This optimization can be applied to predicates that are not context node
// list sensitive, or to first predicate that is only context position
// sensitive, e.g. foo[position() mod 2 = 0].
- WillBeHeapVector<OwnPtrWillBeMember<Predicate> > remainingPredicates;
+ WillBeHeapVector<OwnPtrWillBeMember<Predicate>> remainingPredicates;
for (size_t i = 0; i < m_predicates.size(); ++i) {
OwnPtrWillBeRawPtr<Predicate> predicate(m_predicates[i].release());
if ((!predicate->isContextPositionSensitive() || nodeTest().mergedPredicates().isEmpty()) && !predicate->isContextSizeSensitive() && remainingPredicates.isEmpty()) {
@@ -239,7 +239,7 @@ static inline bool nodeMatches(EvaluationContext& evaluationContext, Node* node,
// Only the first merged predicate may depend on position.
++evaluationContext.position;
- const WillBeHeapVector<OwnPtrWillBeMember<Predicate> >& mergedPredicates = nodeTest.mergedPredicates();
+ const WillBeHeapVector<OwnPtrWillBeMember<Predicate>>& mergedPredicates = nodeTest.mergedPredicates();
for (unsigned i = 0; i < mergedPredicates.size(); i++) {
Predicate* predicate = mergedPredicates[i].get();
« no previous file with comments | « Source/core/xml/XPathStep.h ('k') | Source/core/xml/XSLStyleSheet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698