| Index: Source/core/inspector/InspectorDOMAgent.cpp
|
| ===================================================================
|
| --- Source/core/inspector/InspectorDOMAgent.cpp (revision 170478)
|
| +++ Source/core/inspector/InspectorDOMAgent.cpp (working copy)
|
| @@ -1533,8 +1533,7 @@
|
|
|
| if (node->isFrameOwnerElement()) {
|
| HTMLFrameOwnerElement* frameOwner = toHTMLFrameOwnerElement(node);
|
| - LocalFrame* frame = (frameOwner->contentFrame() && frameOwner->contentFrame()->isLocalFrame()) ? toLocalFrame(frameOwner->contentFrame()) : 0;
|
| - if (frame)
|
| + if (LocalFrame* frame = frameOwner->contentFrame())
|
| value->setFrameId(m_pageAgent->frameId(frame));
|
| if (Document* doc = frameOwner->contentDocument())
|
| value->setContentDocument(buildObjectForNode(doc, 0, nodesMap));
|
|
|