Web Inspector: move Console.addInspectedNode to DOM.setInspectedNode
authorwebkit@devinrousso.com <webkit@devinrousso.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Sep 2017 01:40:30 +0000 (01:40 +0000)
committerwebkit@devinrousso.com <webkit@devinrousso.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Sep 2017 01:40:30 +0000 (01:40 +0000)
commit99d4d65781ef9266d9415749a3b4622c2df0bf89
tree6dee7f161303866e887d6a3b8dbac50edbcbdc79
parent876ee56a7f627a4bba9b92a038f5645e066c3a60
Web Inspector: move Console.addInspectedNode to DOM.setInspectedNode
https://bugs.webkit.org/show_bug.cgi?id=176827

Reviewed by Joseph Pecoraro.

Source/JavaScriptCore:

* inspector/agents/InspectorConsoleAgent.h:

* inspector/agents/JSGlobalObjectConsoleAgent.h:
* inspector/agents/JSGlobalObjectConsoleAgent.cpp:
(Inspector::JSGlobalObjectConsoleAgent::addInspectedNode): Deleted.

* inspector/protocol/Console.json:
* inspector/protocol/DOM.json:

Source/WebCore:

Tests: http/tests/inspector/dom/cross-domain-inspected-node-access.html
       inspector/dom/setInspectedNode.html

* inspector/InspectorDOMAgent.h:
* inspector/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::setInspectedNode):

* inspector/PageConsoleAgent.h:
* inspector/PageConsoleAgent.cpp:
(WebCore::PageConsoleAgent::addInspectedNode): Deleted.

* inspector/WorkerConsoleAgent.h:
* inspector/WorkerConsoleAgent.cpp:
(WebCore::WorkerConsoleAgent::addInspectedNode): Deleted.

Source/WebInspectorUI:

* UserInterface/Controllers/DOMTreeManager.js:
(WI.DOMTreeManager):
(WI.DOMTreeManager.prototype.setInspectedNode):

* UserInterface/Views/DOMTreeContentView.js:
(WI.DOMTreeContentView.prototype._selectedNodeDidChange):

LayoutTests:

* http/tests/inspector/dom/cross-domain-inspected-node-access-expected.txt: Renamed from LayoutTests/http/tests/inspector/console/cross-domain-inspected-node-access-expected.txt.
* http/tests/inspector/dom/cross-domain-inspected-node-access.html: Renamed from LayoutTests/http/tests/inspector/console/cross-domain-inspected-node-access.html.
* inspector/console/command-line-api.html:
* inspector/dom/setInspectedNode-expected.txt: Renamed from LayoutTests/inspector/console/addInspectedNode-expected.txt.
* inspector/dom/setInspectedNode.html: Renamed from LayoutTests/inspector/console/addInspectedNode.html.
* platform/gtk/TestExpectations:
* platform/mac/TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@222486 268f45cc-cd09-0410-ab3c-d52691b4dbfc
24 files changed:
LayoutTests/ChangeLog
LayoutTests/http/tests/inspector/dom/cross-domain-inspected-node-access-expected.txt [moved from LayoutTests/http/tests/inspector/console/cross-domain-inspected-node-access-expected.txt with 100% similarity]
LayoutTests/http/tests/inspector/dom/cross-domain-inspected-node-access.html [moved from LayoutTests/http/tests/inspector/console/cross-domain-inspected-node-access.html with 95% similarity]
LayoutTests/inspector/console/command-line-api.html
LayoutTests/inspector/dom/setInspectedNode-expected.txt [moved from LayoutTests/inspector/console/addInspectedNode-expected.txt with 81% similarity]
LayoutTests/inspector/dom/setInspectedNode.html [moved from LayoutTests/inspector/console/addInspectedNode.html with 91% similarity]
LayoutTests/platform/gtk/TestExpectations
LayoutTests/platform/mac/TestExpectations
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/inspector/agents/InspectorConsoleAgent.h
Source/JavaScriptCore/inspector/agents/JSGlobalObjectConsoleAgent.cpp
Source/JavaScriptCore/inspector/agents/JSGlobalObjectConsoleAgent.h
Source/JavaScriptCore/inspector/protocol/Console.json
Source/JavaScriptCore/inspector/protocol/DOM.json
Source/WebCore/ChangeLog
Source/WebCore/inspector/InspectorDOMAgent.cpp
Source/WebCore/inspector/InspectorDOMAgent.h
Source/WebCore/inspector/PageConsoleAgent.cpp
Source/WebCore/inspector/PageConsoleAgent.h
Source/WebCore/inspector/WorkerConsoleAgent.cpp
Source/WebCore/inspector/WorkerConsoleAgent.h
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Controllers/DOMTreeManager.js
Source/WebInspectorUI/UserInterface/Views/DOMTreeContentView.js