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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js

Issue 1907263002: DevTools: Fix all outstanding JavaScript style issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove yoda disable. fix throw parens Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 WebInspector.CompilerScriptMapping.uiSourceCodeOrigin = function(uiSourceCode) 74 WebInspector.CompilerScriptMapping.uiSourceCodeOrigin = function(uiSourceCode)
75 { 75 {
76 return uiSourceCode[WebInspector.CompilerScriptMapping._originSymbol] || nul l; 76 return uiSourceCode[WebInspector.CompilerScriptMapping._originSymbol] || nul l;
77 } 77 }
78 78
79 WebInspector.CompilerScriptMapping.prototype = { 79 WebInspector.CompilerScriptMapping.prototype = {
80 /** 80 /**
81 * @param {!WebInspector.DebuggerModel.Location} rawLocation 81 * @param {!WebInspector.DebuggerModel.Location} rawLocation
82 * @return {boolean} 82 * @return {boolean}
83 */ 83 */
84 mapsToSourceCode: function (rawLocation) { 84 mapsToSourceCode: function(rawLocation) {
85 var sourceMap = this._sourceMapForScriptId.get(rawLocation.scriptId); 85 var sourceMap = this._sourceMapForScriptId.get(rawLocation.scriptId);
86 if (!sourceMap) { 86 if (!sourceMap) {
87 return true; 87 return true;
88 } 88 }
89 return !!sourceMap.findEntry(rawLocation.lineNumber, rawLocation.columnN umber); 89 return !!sourceMap.findEntry(rawLocation.lineNumber, rawLocation.columnN umber);
90 }, 90 },
91 91
92 /** 92 /**
93 * @override 93 * @override
94 * @param {!WebInspector.DebuggerModel.Location} rawLocation 94 * @param {!WebInspector.DebuggerModel.Location} rawLocation
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 this._sourceMapForScriptId.clear() 382 this._sourceMapForScriptId.clear()
383 this._scriptForSourceMap.clear(); 383 this._scriptForSourceMap.clear();
384 this._sourceMapForURL.clear(); 384 this._sourceMapForURL.clear();
385 }, 385 },
386 386
387 dispose: function() 387 dispose: function()
388 { 388 {
389 this._workspace.removeEventListener(WebInspector.Workspace.Events.UISour ceCodeAdded, this._uiSourceCodeAddedToWorkspace, this); 389 this._workspace.removeEventListener(WebInspector.Workspace.Events.UISour ceCodeAdded, this._uiSourceCodeAddedToWorkspace, this);
390 } 390 }
391 } 391 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698