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

Unified Diff: Source/core/xml/XPathNodeSet.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/XPathNodeSet.h ('k') | Source/core/xml/XPathParser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/XPathNodeSet.cpp
diff --git a/Source/core/xml/XPathNodeSet.cpp b/Source/core/xml/XPathNodeSet.cpp
index d96a2792c9b4c5c5f17614b78aebb67d6aa30d77..ecc6163e0e918b670674a6693ab965a679179944 100644
--- a/Source/core/xml/XPathNodeSet.cpp
+++ b/Source/core/xml/XPathNodeSet.cpp
@@ -39,7 +39,7 @@ namespace XPath {
// even traverse in reasonable time).
const unsigned traversalSortCutoff = 10000;
-typedef WillBeHeapVector<RawPtrWillBeMember<Node> > NodeSetVector;
+typedef WillBeHeapVector<RawPtrWillBeMember<Node>> NodeSetVector;
PassOwnPtrWillBeRawPtr<NodeSet> NodeSet::create(const NodeSet& other)
{
@@ -124,7 +124,7 @@ static void sortBlock(unsigned from, unsigned to, WillBeHeapVector<NodeSetVector
// Children nodes of the common ancestor induce a subdivision of our
// node-set. Sort it according to this subdivision, and recursively sort
// each group.
- WillBeHeapHashSet<RawPtrWillBeMember<Node> > parentNodes;
+ WillBeHeapHashSet<RawPtrWillBeMember<Node>> parentNodes;
for (unsigned i = from; i < to; ++i)
parentNodes.add(parentWithDepth(commonAncestorDepth + 1, parentMatrix[i]));
@@ -188,12 +188,12 @@ void NodeSet::sort() const
// It is not possible to just assign the result to m_nodes, because some
// nodes may get dereferenced and destroyed.
- WillBeHeapVector<RefPtrWillBeMember<Node> > sortedNodes;
+ WillBeHeapVector<RefPtrWillBeMember<Node>> sortedNodes;
sortedNodes.reserveInitialCapacity(nodeCount);
for (unsigned i = 0; i < nodeCount; ++i)
sortedNodes.append(parentMatrix[i][0]);
- const_cast<WillBeHeapVector<RefPtrWillBeMember<Node> >&>(m_nodes).swap(sortedNodes);
+ const_cast<WillBeHeapVector<RefPtrWillBeMember<Node>>&>(m_nodes).swap(sortedNodes);
}
static Node* findRootNode(Node* node)
@@ -211,7 +211,7 @@ static Node* findRootNode(Node* node)
void NodeSet::traversalSort() const
{
- WillBeHeapHashSet<RawPtrWillBeMember<Node> > nodes;
+ WillBeHeapHashSet<RawPtrWillBeMember<Node>> nodes;
bool containsAttributeNodes = false;
unsigned nodeCount = m_nodes.size();
@@ -223,7 +223,7 @@ void NodeSet::traversalSort() const
containsAttributeNodes = true;
}
- WillBeHeapVector<RefPtrWillBeMember<Node> > sortedNodes;
+ WillBeHeapVector<RefPtrWillBeMember<Node>> sortedNodes;
sortedNodes.reserveInitialCapacity(nodeCount);
for (Node& n : NodeTraversal::startsAt(findRootNode(m_nodes.first().get()))) {
@@ -243,7 +243,7 @@ void NodeSet::traversalSort() const
}
ASSERT(sortedNodes.size() == nodeCount);
- const_cast<WillBeHeapVector<RefPtrWillBeMember<Node> >&>(m_nodes).swap(sortedNodes);
+ const_cast<WillBeHeapVector<RefPtrWillBeMember<Node>>&>(m_nodes).swap(sortedNodes);
}
void NodeSet::reverse()
« no previous file with comments | « Source/core/xml/XPathNodeSet.h ('k') | Source/core/xml/XPathParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698