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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js

Issue 2501883002: DevTools: kill Bindings.NetworkMapping (Closed)
Patch Set: rebaseline Created 4 years, 1 month 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
4 * Copyright (C) 2009 Joseph Pecoraro 4 * Copyright (C) 2009 Joseph Pecoraro
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 if (consoleMessage.scriptId) { 284 if (consoleMessage.scriptId) {
285 anchorElement = this._linkifyScriptId( 285 anchorElement = this._linkifyScriptId(
286 consoleMessage.scriptId, consoleMessage.url || '', consoleMessage.li ne, consoleMessage.column); 286 consoleMessage.scriptId, consoleMessage.url || '', consoleMessage.li ne, consoleMessage.column);
287 } else if (consoleMessage.stackTrace && consoleMessage.stackTrace.callFram es.length) { 287 } else if (consoleMessage.stackTrace && consoleMessage.stackTrace.callFram es.length) {
288 anchorElement = this._linkifyStackTraceTopFrame(consoleMessage.stackTrac e); 288 anchorElement = this._linkifyStackTraceTopFrame(consoleMessage.stackTrac e);
289 } else if (consoleMessage.url && consoleMessage.url !== 'undefined') { 289 } else if (consoleMessage.url && consoleMessage.url !== 'undefined') {
290 anchorElement = this._linkifyLocation(consoleMessage.url, consoleMessage .line, consoleMessage.column); 290 anchorElement = this._linkifyLocation(consoleMessage.url, consoleMessage .line, consoleMessage.column);
291 } 291 }
292 } else if (consoleMessage.url) { 292 } else if (consoleMessage.url) {
293 var url = consoleMessage.url; 293 var url = consoleMessage.url;
294 var isExternal = !Bindings.resourceForURL(url) && !Bindings.networkMapping .uiSourceCodeForURLForAnyTarget(url); 294 var isExternal = !Bindings.resourceForURL(url) && !Workspace.workspace.uiS ourceCodeForURL(url);
295 anchorElement = UI.linkifyURLAsNode(url, url, 'console-message-url', isExt ernal); 295 anchorElement = UI.linkifyURLAsNode(url, url, 'console-message-url', isExt ernal);
296 } 296 }
297 297
298 // Append a space to prevent the anchor text from being glued to the console message when the user selects and copies the console messages. 298 // Append a space to prevent the anchor text from being glued to the console message when the user selects and copies the console messages.
299 if (anchorElement) 299 if (anchorElement)
300 anchorElement.appendChild(createTextNode(' ')); 300 anchorElement.appendChild(createTextNode(' '));
301 return anchorElement; 301 return anchorElement;
302 } 302 }
303 303
304 /** 304 /**
(...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after
1235 * @return {!Element} 1235 * @return {!Element}
1236 */ 1236 */
1237 toMessageElement() { 1237 toMessageElement() {
1238 if (!this._element) { 1238 if (!this._element) {
1239 super.toMessageElement(); 1239 super.toMessageElement();
1240 this._element.classList.toggle('collapsed', this._collapsed); 1240 this._element.classList.toggle('collapsed', this._collapsed);
1241 } 1241 }
1242 return this._element; 1242 return this._element;
1243 } 1243 }
1244 }; 1244 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698