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

Side by Side Diff: Source/bindings/core/v8/DebuggerScript.js

Issue 323523004: DevTools: Add scripts sourceURL plumbing from v8. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 } else { 151 } else {
152 if (lineCount === 1) 152 if (lineCount === 1)
153 endColumn = script.source.length + script.column_offset; 153 endColumn = script.source.length + script.column_offset;
154 else 154 else
155 endColumn = script.source.length - (lineEnds[lineCount - 2] + 1); 155 endColumn = script.source.length - (lineEnds[lineCount - 2] + 1);
156 } 156 }
157 157
158 return { 158 return {
159 id: script.id, 159 id: script.id,
160 name: script.nameOrSourceURL(), 160 name: script.nameOrSourceURL(),
161 sourceURL: script.source_url,
162 sourceMappingURL: script.source_mapping_url,
161 source: script.source, 163 source: script.source,
162 startLine: script.line_offset, 164 startLine: script.line_offset,
163 startColumn: script.column_offset, 165 startColumn: script.column_offset,
164 endLine: endLine, 166 endLine: endLine,
165 endColumn: endColumn, 167 endColumn: endColumn,
166 isContentScript: !!script.context_data && script.context_data.indexOf("i njected") == 0 168 isContentScript: !!script.context_data && script.context_data.indexOf("i njected") == 0
167 }; 169 };
168 } 170 }
169 171
170 DebuggerScript.setBreakpoint = function(execState, info) 172 DebuggerScript.setBreakpoint = function(execState, info)
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 break; 506 break;
505 } 507 }
506 return result; 508 return result;
507 } 509 }
508 510
509 // We never resolve Mirror by its handle so to avoid memory leaks caused by Mirr ors in the cache we disable it. 511 // We never resolve Mirror by its handle so to avoid memory leaks caused by Mirr ors in the cache we disable it.
510 ToggleMirrorCache(false); 512 ToggleMirrorCache(false);
511 513
512 return DebuggerScript; 514 return DebuggerScript;
513 })(); 515 })();
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/core/v8/ScriptDebugServer.cpp » ('j') | Source/core/inspector/InspectorDebuggerAgent.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698