RESOLVED FIXED 55823
Web Inspector: re-implement breakpoints sidebar pane based on debugger presentation model.
https://bugs.webkit.org/show_bug.cgi?id=55823
Summary Web Inspector: re-implement breakpoints sidebar pane based on debugger presen...
Pavel Podivilov
Reported 2011-03-05 06:46:32 PST
Web Inspector: re-implement breakpoints sidebar pane as a simple ui component. The code would be cleaner if scripts panel is the only debugger model's client.
Attachments
Patch. (20.56 KB, patch)
2011-03-05 06:47 PST, Pavel Podivilov
pfeldman: review-
Patch. (17.98 KB, patch)
2011-03-09 04:42 PST, Pavel Podivilov
pfeldman: review-
Patch. (22.14 KB, patch)
2011-03-09 06:25 PST, Pavel Podivilov
pfeldman: review+
Pavel Podivilov
Comment 1 2011-03-05 06:47:21 PST
Pavel Feldman
Comment 2 2011-03-06 10:50:26 PST
Comment on attachment 84863 [details] Patch. View in context: https://bugs.webkit.org/attachment.cgi?id=84863&action=review > Source/WebCore/inspector/front-end/ScriptsPanel.js:1056 > + _javaScriptBreakpointsSidebarPaneBreakpointClicked: function(event) I think the code would be much cleaner if you had a Breakpoint class with corresponding methods on it. Did you consider this option? It would also result it way less changes.
Pavel Podivilov
Comment 3 2011-03-09 04:42:23 PST
Pavel Podivilov
Comment 4 2011-03-09 04:56:53 PST
(In reply to comment #2) > (From update of attachment 84863 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=84863&action=review > > > Source/WebCore/inspector/front-end/ScriptsPanel.js:1056 > > + _javaScriptBreakpointsSidebarPaneBreakpointClicked: function(event) > > I think the code would be much cleaner if you had a Breakpoint class with corresponding methods on it. Did you consider this option? It would also result it way less changes. Moved event handlers back to JavaScriptBreakpointsSidebarPane class. I don't think Breakpoint class would make the code any cleaner, it just shadows the dependencies.
Pavel Feldman
Comment 5 2011-03-09 05:12:13 PST
Comment on attachment 85159 [details] Patch. Could you please explain why are you doing this refactoring? Bug title says: "re-implement breakpoints sidebar pane as a simple ui component", but I see this._model being introduced in the sidebar section class. I.e. the opposite is happening. I am fine with having model in the sidebar, but I am confused wrt what exactly is happening and why.
Pavel Podivilov
Comment 6 2011-03-09 06:25:29 PST
Pavel Podivilov
Comment 7 2011-03-09 06:26:06 PST
(In reply to comment #5) > (From update of attachment 85159 [details]) > Could you please explain why are you doing this refactoring? Bug title says: "re-implement breakpoints sidebar pane as a simple ui component", but I see this._model being introduced in the sidebar section class. I.e. the opposite is happening. I am fine with having model in the sidebar, but I am confused wrt what exactly is happening and why. Sorry about that, forgot to update the title.
Pavel Podivilov
Comment 8 2011-03-09 06:27:14 PST
*** Bug 55822 has been marked as a duplicate of this bug. ***
Pavel Podivilov
Comment 9 2011-03-10 04:26:55 PST
Note You need to log in before you can comment on or make changes to this bug.