Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(316)

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js

Issue 2120603002: DevTools: gray out linenumbers for the unmapped source code lines (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: disallow setting breakpoint on lines without sourcemapping Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/source_frame/cmdevtools.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js b/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js
index 64265cfaaeec2c4aa4025404cd1e6eb7018d04c0..74143971a6e4eec07dada63b194d519190ff5263 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js
@@ -1118,6 +1118,9 @@ WebInspector.JavaScriptSourceFrame.prototype = {
*/
_setBreakpoint: function(lineNumber, columnNumber, condition, enabled)
{
+ if (!WebInspector.debuggerWorkspaceBinding.uiLineHasMapping(this.uiSourceCode(), lineNumber))
+ return;
+
this._breakpointManager.setBreakpoint(this.uiSourceCode(), lineNumber, columnNumber, condition, enabled);
},
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/source_frame/cmdevtools.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698