Skip to content
  • loislo@chromium.org's avatar
    Web Inspector: [heap snapshot] It could be useful to have access to the... · f59b0306
    loislo@chromium.org authored
    Web Inspector: [heap snapshot] It could be useful to have access to the selected heap object from the console.
    https://bugs.webkit.org/show_bug.cgi?id=78496
    
    Reviewed by Yury Semikhatsky.
    
    Source/WebCore:
    
           * bindings/js/JSInjectedScriptHostCustom.cpp:
    (WebCore::JSInjectedScriptHost::inspectedObject):
    * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
    (WebCore::V8InjectedScriptHost::inspectedObjectCallback):
    * inspector/InjectedScriptHost.cpp:
    (WebCore::InjectedScriptHost::InjectedScriptHost):
    (WebCore::InjectedScriptHost::InspectableObject::get):
    (WebCore):
    (WebCore::InjectedScriptHost::addInspectedObject):
    (WebCore::InjectedScriptHost::clearInspectedObjects):
    (WebCore::InjectedScriptHost::inspectedObject):
    * inspector/InjectedScriptHost.h:
    (InspectableObject):
    (WebCore::InjectedScriptHost::InspectableObject::~InspectableObject):
    (InjectedScriptHost):
    * inspector/InjectedScriptHost.idl:
    * inspector/InjectedScriptSource.js:
    (.):
    * inspector/Inspector.json:
    * inspector/InspectorAgent.cpp:
    (WebCore::InspectorAgent::domContentLoadedEventFired):
    * inspector/InspectorConsoleAgent.cpp:
    (InspectableHeapObject):
    (WebCore::InspectableHeapObject::InspectableHeapObject):
    (WebCore::InspectableHeapObject::get):
    (WebCore):
    (WebCore::InspectorConsoleAgent::addInspectedHeapObject):
    * inspector/InspectorConsoleAgent.h:
    (InspectorConsoleAgent):
    * inspector/InspectorProfilerAgent.cpp:
    (WebCore::InspectorProfilerAgent::resetState):
    * inspector/PageConsoleAgent.cpp:
    (InspectableNode):
    (WebCore::InspectableNode::InspectableNode):
    (WebCore::InspectableNode::get):
    (WebCore):
    (WebCore::PageConsoleAgent::addInspectedNode):
    * inspector/front-end/DetailedHeapshotView.js:
    (WebInspector.DetailedHeapshotView.prototype._selectionChanged):
    (WebInspector.DetailedHeapshotView.prototype._inspectedObjectChanged):
    
    LayoutTests:
    
    * inspector/protocol/console-agent-expected.txt:
    * inspector/protocol/console-agent.html:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107929 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    f59b0306