Bug 52717

Summary: Web Inspector: move methods from InjectedScript domain into DOM, Runtime and Debugger domains. Introduce InspectorRuntimeAgent.
Product: WebKit Reporter: Pavel Feldman <pfeldman>
Component: Web Inspector (Deprecated)Assignee: Pavel Feldman <pfeldman>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, buildbot, bweinstein, dglazkov, gustavo, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, webkit-ews, webkit.review.bot, xan.lopez, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] Proposed change.
none
[PATCH] Proposed change with missing files added.
yurys: review+
[PATCH] Review comments addressed, for landing.
pfeldman: review+
[PATCH] Patch for landing. pfeldman: review+

Pavel Feldman
Reported 2011-01-19 06:20:05 PST
Patch to follow.
Attachments
[PATCH] Proposed change. (57.16 KB, patch)
2011-01-19 06:22 PST, Pavel Feldman
no flags
[PATCH] Proposed change with missing files added. (65.91 KB, patch)
2011-01-19 06:46 PST, Pavel Feldman
yurys: review+
[PATCH] Review comments addressed, for landing. (65.16 KB, patch)
2011-01-19 07:09 PST, Pavel Feldman
pfeldman: review+
[PATCH] Patch for landing. (65.21 KB, patch)
2011-01-19 07:17 PST, Pavel Feldman
pfeldman: review+
Pavel Feldman
Comment 1 2011-01-19 06:22:51 PST
Created attachment 79414 [details] [PATCH] Proposed change.
WebKit Review Bot
Comment 2 2011-01-19 06:24:49 PST
Attachment 79414 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/CMakeLists.txt', u'Source/W..." exit_code: 1 Source/WebCore/inspector/InspectorDOMAgent.h:105: The parameter name "injectedScriptHost" adds no information, so it should be removed. [readability/parameter_name] [5] Source/WebCore/inspector/InspectorDOMAgent.h:105: The parameter name "frontend" adds no information, so it should be removed. [readability/parameter_name] [5] Source/WebCore/inspector/InspectorDOMAgent.h:131: The parameter name "document" adds no information, so it should be removed. [readability/parameter_name] [5] Source/WebCore/inspector/InspectorDOMAgent.h:140: The parameter name "node" adds no information, so it should be removed. [readability/parameter_name] [5] Source/WebCore/inspector/InspectorDOMAgent.h:148: The parameter name "document" adds no information, so it should be removed. [readability/parameter_name] [5] Source/WebCore/inspector/InspectorDOMAgent.h:161: The parameter name "document" adds no information, so it should be removed. [readability/parameter_name] [5] Source/WebCore/inspector/InspectorDOMAgent.h:162: The parameter name "document" adds no information, so it should be removed. [readability/parameter_name] [5] Source/WebCore/inspector/InspectorDOMAgent.h:164: The parameter name "event" adds no information, so it should be removed. [readability/parameter_name] [5] Source/WebCore/inspector/InspectorDOMAgent.h:168: The parameter name "node" adds no information, so it should be removed. [readability/parameter_name] [5] Source/WebCore/inspector/InspectorDOMAgent.h:169: The parameter name "node" adds no information, so it should be removed. [readability/parameter_name] [5] Source/WebCore/inspector/InspectorDOMAgent.h:173: The parameter name "node" adds no information, so it should be removed. [readability/parameter_name] [5] Source/WebCore/inspector/InspectorDOMAgent.h:177: The parameter name "node" adds no information, so it should be removed. [readability/parameter_name] [5] Source/WebCore/inspector/InspectorDOMAgent.h:178: The parameter name "element" adds no information, so it should be removed. [readability/parameter_name] [5] Source/WebCore/inspector/InspectorDOMAgent.h:180: The parameter name "registeredEventListener" adds no information, so it should be removed. [readability/parameter_name] [5] Source/WebCore/inspector/InspectorDOMAgent.h:180: The parameter name "node" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 15 in 22 files If any of these errors are false positives, please file a bug against check-webkit-style.
WebKit Review Bot
Comment 3 2011-01-19 06:30:13 PST
Early Warning System Bot
Comment 4 2011-01-19 06:36:24 PST
WebKit Review Bot
Comment 5 2011-01-19 06:36:53 PST
Build Bot
Comment 6 2011-01-19 06:43:13 PST
Pavel Feldman
Comment 7 2011-01-19 06:46:49 PST
Created attachment 79418 [details] [PATCH] Proposed change with missing files added.
Yury Semikhatsky
Comment 8 2011-01-19 07:03:01 PST
Comment on attachment 79418 [details] [PATCH] Proposed change with missing files added. View in context: https://bugs.webkit.org/attachment.cgi?id=79418&action=review > Source/WebCore/inspector/InjectedScriptHost.cpp:152 > + Remove this space. > Source/WebCore/inspector/InjectedScriptHost.cpp:158 > +InjectedScript InjectedScriptHost::injectedScriptForMainWorld() injectedScriptForMainWorld -> injectedScriptForMainFrame > Source/WebCore/inspector/InspectorRuntimeAgent.cpp:83 > +InjectedScript InspectorRuntimeAgent::injectedScriptForObjectId(InspectorObject* objectId) Let's move this method into InjectedScriptHost and move pushNodeToFrontend into DOM agent.
Pavel Feldman
Comment 9 2011-01-19 07:09:31 PST
Created attachment 79419 [details] [PATCH] Review comments addressed, for landing.
Pavel Feldman
Comment 10 2011-01-19 07:17:16 PST
Created attachment 79422 [details] [PATCH] Patch for landing.
Pavel Feldman
Comment 11 2011-01-19 10:28:49 PST
Committing to http://svn.webkit.org/repository/webkit/trunk ... C Source/WebCore/inspector/InjectedScript.h => Source/WebCore/inspector/InspectorRuntimeAgent.h M Source/WebCore/CMakeLists.txt M Source/WebCore/ChangeLog M Source/WebCore/GNUmakefile.am M Source/WebCore/WebCore.gypi M Source/WebCore/WebCore.pro M Source/WebCore/WebCore.vcproj/WebCore.vcproj M Source/WebCore/WebCore.xcodeproj/project.pbxproj M Source/WebCore/inspector/CodeGeneratorInspector.pm M Source/WebCore/inspector/InjectedScript.cpp M Source/WebCore/inspector/InjectedScript.h M Source/WebCore/inspector/InjectedScriptHost.cpp M Source/WebCore/inspector/InjectedScriptHost.h M Source/WebCore/inspector/InjectedScriptSource.js M Source/WebCore/inspector/Inspector.idl M Source/WebCore/inspector/InspectorController.cpp M Source/WebCore/inspector/InspectorController.h M Source/WebCore/inspector/InspectorDOMAgent.cpp M Source/WebCore/inspector/InspectorDOMAgent.h M Source/WebCore/inspector/InspectorDebuggerAgent.cpp M Source/WebCore/inspector/InspectorDebuggerAgent.h A Source/WebCore/inspector/InspectorRuntimeAgent.cpp M Source/WebCore/inspector/front-end/ConsoleView.js M Source/WebCore/inspector/front-end/ScriptsPanel.js Committed r76136
Note You need to log in before you can comment on or make changes to this bug.