Commit 416c3ba5 authored by rob.buis's avatar rob.buis Committed by Commit bot

Use type aliases for StaticElementList/StaticNodeList

We currently have a mixture of using typedefs and type aliases for forward
referencing StaticElementList and StaticNodeElement. Stick to type aliases
since they are more modern and a C++11 allowed feature in Chromium.

Review-Url: https://codereview.chromium.org/2317083003
Cr-Commit-Position: refs/heads/master@{#417085}
parent cec55646
...@@ -40,7 +40,7 @@ namespace blink { ...@@ -40,7 +40,7 @@ namespace blink {
class Node; class Node;
class QualifiedName; class QualifiedName;
template <typename NodeType> class StaticNodeTypeList; template <typename NodeType> class StaticNodeTypeList;
typedef StaticNodeTypeList<Node> StaticNodeList; using StaticNodeList = StaticNodeTypeList<Node>;
class MutationRecord : public GarbageCollectedFinalized<MutationRecord>, public ScriptWrappable { class MutationRecord : public GarbageCollectedFinalized<MutationRecord>, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO(); DEFINE_WRAPPERTYPEINFO();
......
...@@ -42,7 +42,7 @@ class Document; ...@@ -42,7 +42,7 @@ class Document;
class Element; class Element;
class ExceptionState; class ExceptionState;
template <typename NodeType> class StaticNodeTypeList; template <typename NodeType> class StaticNodeTypeList;
typedef StaticNodeTypeList<Element> StaticElementList; using StaticElementList = StaticNodeTypeList<Element>;
class SelectorDataList { class SelectorDataList {
DISALLOW_NEW(); DISALLOW_NEW();
......
...@@ -58,8 +58,7 @@ private: ...@@ -58,8 +58,7 @@ private:
HeapVector<Member<NodeType>> m_nodes; HeapVector<Member<NodeType>> m_nodes;
}; };
typedef StaticNodeTypeList<Node> StaticNodeList; using StaticNodeList = StaticNodeTypeList<Node>;
typedef StaticNodeTypeList<Element> StaticElementList;
template <typename NodeType> template <typename NodeType>
StaticNodeTypeList<NodeType>* StaticNodeTypeList<NodeType>::adopt(HeapVector<Member<NodeType>>& nodes) StaticNodeTypeList<NodeType>* StaticNodeTypeList<NodeType>::adopt(HeapVector<Member<NodeType>>& nodes)
......
...@@ -70,7 +70,7 @@ class TypeConversions; ...@@ -70,7 +70,7 @@ class TypeConversions;
class UnionTypesTest; class UnionTypesTest;
class ScrollState; class ScrollState;
template <typename NodeType> class StaticNodeTypeList; template <typename NodeType> class StaticNodeTypeList;
typedef StaticNodeTypeList<Node> StaticNodeList; using StaticNodeList = StaticNodeTypeList<Node>;
class Internals final : public GarbageCollectedFinalized<Internals>, public ScriptWrappable, public ContextLifecycleObserver, public ValueIterable<int> { class Internals final : public GarbageCollectedFinalized<Internals>, public ScriptWrappable, public ContextLifecycleObserver, public ValueIterable<int> {
DEFINE_WRAPPERTYPEINFO(); DEFINE_WRAPPERTYPEINFO();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment