| Index: third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
|
| diff --git a/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
|
| index 3b216b3c6e36837d27c59ed26fbc80d39074c43a..aae768fe41584e5a2c496bbd75caa89562d30f66 100644
|
| --- a/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
|
| +++ b/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
|
| @@ -1479,6 +1479,12 @@ PassOwnPtr<protocol::DOM::Node> InspectorDOMAgent::buildObjectForNode(Node* node
|
| value->setContentDocument(buildObjectForNode(doc, 0, nodesMap));
|
| }
|
|
|
| + if (node->parentNode() && node->parentNode()->isDocumentNode()) {
|
| + LocalFrame* frame = node->document().frame();
|
| + if (frame)
|
| + value->setFrameId(IdentifiersFactory::frameId(frame));
|
| + }
|
| +
|
| ElementShadow* shadow = element->shadow();
|
| if (shadow) {
|
| OwnPtr<protocol::Array<protocol::DOM::Node>> shadowRoots = protocol::Array<protocol::DOM::Node>::create();
|
|
|