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 a469ff8555445cc57950ee36a1ed431dfe2341b6..7aa5579a8af69965390274f716656a79662c0f9b 100644 |
--- a/third_party/WebKit/Source/core/inspector/browser_protocol.json |
+++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json |
@@ -2078,12 +2078,31 @@ |
{ "name": "backendNodeId", "$ref": "BackendNodeId", "description": "The BackendNodeId of the related DOM node." }, |
{ "name": "boundingBox", "$ref": "Rect", "description": "The absolute position bounding box." }, |
{ "name": "layoutText", "type": "string", "optional": true, "description": "Contents of the LayoutText if any" }, |
- { "name": "inlineTextNodes", "type": "array", "optional": true, "items": { "$ref": "InlineTextBox" }, "description": "The post layout inline text nodes, if any." } |
+ { "name": "inlineTextNodes", "type": "array", "optional": true, "items": { "$ref": "InlineTextBox" }, "description": "The post layout inline text nodes, if any." }, |
+ { "name": "styleIndex", "type": "integer", "optional": true, "description": "Index into the computedStyles array returned by getLayoutTreeNodes." } |
], |
"description": "Details of an element in the DOM tree with a LayoutObject.", |
"experimental": true |
}, |
{ |
+ "id": "ComputedStyleProperty", |
+ "type": "object", |
+ "properties": [ |
+ { "name": "name", "type": "string", "description": "Computed style property name." }, |
+ { "name": "value", "type": "string", "description": "Computed style property value." } |
+ ], |
+ "experimental": true |
+ }, |
+ { |
+ "id": "ComputedStyle", |
+ "type": "object", |
+ "properties": [ |
+ { "name": "properties", "type": "array", "items": { "$ref": "ComputedStyleProperty" } } |
+ ], |
+ "description": "A subset of the full ComputedStyle as defined by the request whitelist.", |
+ "experimental": true |
+ }, |
+ { |
"id": "RGBA", |
"type": "object", |
"properties": [ |
@@ -2190,10 +2209,14 @@ |
}, |
{ |
"name": "getLayoutTreeNodes", |
dgozman
2016/10/12 21:00:40
I'd rename this to getLayoutTreeAndStyles and move
alex clarke (OOO till 29th)
2016/10/13 20:25:10
Done.
|
+ "parameters": [ |
+ { "name": "computedStyleWhitelist", "type": "array", "items": { "type": "string" }, "description": "Whitelist of computed styles to return." } |
+ ], |
"returns": [ |
- { "name": "layoutTreeNodes", "type": "array", "items": { "$ref": "LayoutTreeNode" } } |
+ { "name": "layoutTreeNodes", "type": "array", "items": { "$ref": "LayoutTreeNode" } }, |
+ { "name": "computedStyles", "type": "array", "items": { "$ref": "ComputedStyle" } } |
], |
- "description": "Returns the document's LayoutTreeNodes to the caller, and those of any iframes too.", |
+ "description": "For the main document and any content documents, return the LayoutTreeNodes and a whitelisted subset of the computed style.", |
"experimental": true |
}, |
{ |