summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/dom/child_node_list.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/dom/child_node_list.h')
-rw-r--r--chromium/third_party/blink/renderer/core/dom/child_node_list.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/chromium/third_party/blink/renderer/core/dom/child_node_list.h b/chromium/third_party/blink/renderer/core/dom/child_node_list.h
index b52dc467877..80d86082530 100644
--- a/chromium/third_party/blink/renderer/core/dom/child_node_list.h
+++ b/chromium/third_party/blink/renderer/core/dom/child_node_list.h
@@ -70,11 +70,12 @@ class ChildNodeList final : public NodeList {
mutable CollectionIndexCache<ChildNodeList, Node> collection_index_cache_;
};
-DEFINE_TYPE_CASTS(ChildNodeList,
- NodeList,
- nodeList,
- nodeList->IsChildNodeList(),
- nodeList.IsChildNodeList());
+template <>
+struct DowncastTraits<ChildNodeList> {
+ static bool AllowFrom(const NodeList& nodeList) {
+ return nodeList.IsChildNodeList();
+ }
+};
} // namespace blink