Web Inspector: move breakpoint column adjustment to debugger model
Created attachment 84859 [details] Patch.
Comment on attachment 84859 [details] Patch. View in context: https://bugs.webkit.org/attachment.cgi?id=84859&action=review > Source/WebCore/inspector/front-end/DebuggerModel.js:83 > + var script = this._scripts[id]; So you rely upon the fact that _scripts are sorted in the compilation order, right? This is right, but a bit fragile. Could you mention it in the comments and provide a test? Clearing r? while waiting for test. > Source/WebCore/inspector/front-end/DebuggerModel.js:100 > + } Please revert this change.
Created attachment 85151 [details] Patch.
(In reply to comment #2) > (From update of attachment 84859 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=84859&action=review > > > Source/WebCore/inspector/front-end/DebuggerModel.js:83 > > + var script = this._scripts[id]; > > So you rely upon the fact that _scripts are sorted in the compilation order, right? > This is right, but a bit fragile. Could you mention it in the comments and provide a test? Clearing r? while waiting for test. Replaced with less fragile code that searches for the leftmost script on the line. This code is tested by debug-inlined-scripts.html. > > > Source/WebCore/inspector/front-end/DebuggerModel.js:100 > > + } > > Please revert this change. Done.
Commited in r80702.