Index: third_party/WebKit/Source/core/dom/NodeTraversal.h |
diff --git a/third_party/WebKit/Source/core/dom/NodeTraversal.h b/third_party/WebKit/Source/core/dom/NodeTraversal.h |
index b535d914d424408cc5a30f02ff4cef9a69e69906..891c38e179b9a55603eee445b5e03a1426b51097 100644 |
--- a/third_party/WebKit/Source/core/dom/NodeTraversal.h |
+++ b/third_party/WebKit/Source/core/dom/NodeTraversal.h |
@@ -121,6 +121,9 @@ class NodeTraversal { |
static bool isDescendantOf(const Node& node, const Node& other) { |
return node.isDescendantOf(&other); |
} |
+ static bool contains(const ContainerNode& container, const Node& other) { |
+ return container.contains(&other); |
yosin_UTC9
2017/03/17 10:06:13
Since there is no unit test for ContainerNode::con
|
+ } |
static Node* firstChild(const Node& parent) { return parent.firstChild(); } |
static Node* lastChild(const Node& parent) { return parent.lastChild(); } |
static Node* nextSibling(const Node& node) { return node.nextSibling(); } |