Index: third_party/WebKit/Source/core/inspector/browser_protocol.json |
diff --git a/third_party/WebKit/Source/core/inspector/browser_protocol.json b/third_party/WebKit/Source/core/inspector/browser_protocol.json |
index 6e6306437c8f50855aad66976b3649ac0505ffe7..81c4071b2c243561a4742a6c711e0e670547cc5b 100644 |
--- a/third_party/WebKit/Source/core/inspector/browser_protocol.json |
+++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json |
@@ -2030,6 +2030,7 @@ |
"type": "object", |
"properties": [ |
{ "name": "nodeId", "$ref": "NodeId", "description": "Node identifier that is passed into the rest of the DOM messages as the <code>nodeId</code>. Backend will only push node with given <code>id</code> once. It is aware of all requested nodes and will only fire DOM events for nodes known to the client." }, |
+ { "name": "parentId", "$ref": "NodeId", "optional": true, "description": "The id of the parent node if any.", "experimental": true }, |
{ "name": "backendNodeId", "$ref": "BackendNodeId", "description": "The BackendNodeId for this node.", "experimental": true }, |
{ "name": "nodeType", "type": "integer", "description": "<code>Node</code>'s nodeType." }, |
{ "name": "nodeName", "type": "string", "description": "<code>Node</code>'s nodeName." }, |
@@ -2168,6 +2169,17 @@ |
"description": "Returns the root DOM node (and optionally the subtree) to the caller." |
}, |
{ |
+ "name": "getFlattenedDocument", |
+ "parameters": [ |
+ { "name": "depth", "type": "integer", "optional": true, "description": "The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.", "experimental": true }, |
+ { "name": "pierce", "type": "boolean", "optional": true, "description": "Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).", "experimental": true } |
+ ], |
+ "returns": [ |
+ { "name": "nodes", "type": "array", "items": { "$ref": "Node" }, "description": "Resulting node." } |
+ ], |
+ "description": "Returns the root DOM node (and optionally the subtree) to the caller." |
+ }, |
+ { |
"name": "collectClassNamesFromSubtree", |
"parameters": [ |
{ "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to collect class names." } |