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

Unified Diff: third_party/WebKit/Source/core/dom/NodeTraversal.h

Issue 2753193002: Editing: Indent command: Do not insert BLOCKQUOTE under the root HTML element. (Closed)
Patch Set: . Created 3 years, 9 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
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(); }

Powered by Google App Engine
This is Rietveld 408576698