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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js

Issue 1663723002: [DevTools] Add sourceMap support for blackboxing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@call-set-blackboxed-ranges-on-script-parsed
Patch Set: Created 4 years, 10 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 * @param {!WebInspector.SourceMap.Entry} mapping 234 * @param {!WebInspector.SourceMap.Entry} mapping
235 * @return {number} 235 * @return {number}
236 */ 236 */
237 function lineComparator(lineNumber, mapping) 237 function lineComparator(lineNumber, mapping)
238 { 238 {
239 return lineNumber - mapping.sourceLineNumber; 239 return lineNumber - mapping.sourceLineNumber;
240 } 240 }
241 }, 241 },
242 242
243 /** 243 /**
244 * @return {!Array<!WebInspector.SourceMap.Entry>}
245 */
246 mappings: function()
247 {
248 return this._mappings;
249 },
250
251 /**
244 * @param {string} sourceURL 252 * @param {string} sourceURL
245 * @return {!Array.<!WebInspector.SourceMap.Entry>} 253 * @return {!Array.<!WebInspector.SourceMap.Entry>}
246 */ 254 */
247 _reversedMappings: function(sourceURL) 255 _reversedMappings: function(sourceURL)
248 { 256 {
249 var mappings = this._reverseMappingsBySourceURL.get(sourceURL); 257 var mappings = this._reverseMappingsBySourceURL.get(sourceURL);
250 if (!mappings) 258 if (!mappings)
251 return []; 259 return [];
252 if (!mappings._sorted) { 260 if (!mappings._sorted) {
253 mappings.sort(sourceMappingComparator); 261 mappings.sort(sourceMappingComparator);
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 * @param {number=} sourceColumnNumber 432 * @param {number=} sourceColumnNumber
425 */ 433 */
426 WebInspector.SourceMap.Entry = function(lineNumber, columnNumber, sourceURL, sou rceLineNumber, sourceColumnNumber) 434 WebInspector.SourceMap.Entry = function(lineNumber, columnNumber, sourceURL, sou rceLineNumber, sourceColumnNumber)
427 { 435 {
428 this.lineNumber = lineNumber; 436 this.lineNumber = lineNumber;
429 this.columnNumber = columnNumber; 437 this.columnNumber = columnNumber;
430 this.sourceURL = sourceURL; 438 this.sourceURL = sourceURL;
431 this.sourceLineNumber = sourceLineNumber; 439 this.sourceLineNumber = sourceLineNumber;
432 this.sourceColumnNumber = sourceColumnNumber; 440 this.sourceColumnNumber = sourceColumnNumber;
433 } 441 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698