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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/components/DOMPresentationUtils.js

Issue 2921963002: [Devtools] Removed NetworkRequest dependency on NetworkManager (Closed)
Patch Set: Merge branch 'REMOVE_REDIRECTS_REBASE' into REMOVE_MANAGER_DEPENDENCY Created 3 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 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) 2008 Matt Lilek <webkit@mattlilek.com> 4 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com>
5 * Copyright (C) 2009 Joseph Pecoraro 5 * Copyright (C) 2009 Joseph Pecoraro
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 10 *
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 container.createChild('tr').createChild('td').createChild('span', 'descrip tion').textContent = description; 206 container.createChild('tr').createChild('td').createChild('span', 'descrip tion').textContent = description;
207 if (imageURL !== originalImageURL) { 207 if (imageURL !== originalImageURL) {
208 container.createChild('tr').createChild('td').createChild('span', 'descrip tion').textContent = 208 container.createChild('tr').createChild('td').createChild('span', 'descrip tion').textContent =
209 String.sprintf('currentSrc: %s', imageURL.trimMiddle(100)); 209 String.sprintf('currentSrc: %s', imageURL.trimMiddle(100));
210 } 210 }
211 fulfill(container); 211 fulfill(container);
212 } 212 }
213 }; 213 };
214 214
215 /** 215 /**
216 * @param {!SDK.Target} target 216 * @param {?SDK.Target} target
217 * @param {!Components.Linkifier} linkifier 217 * @param {!Components.Linkifier} linkifier
218 * @param {!Protocol.Runtime.StackTrace=} stackTrace 218 * @param {!Protocol.Runtime.StackTrace=} stackTrace
219 * @return {!Element} 219 * @return {!Element}
220 */ 220 */
221 Components.DOMPresentationUtils.buildStackTracePreviewContents = function(target , linkifier, stackTrace) { 221 Components.DOMPresentationUtils.buildStackTracePreviewContents = function(target , linkifier, stackTrace) {
222 var element = createElement('span'); 222 var element = createElement('span');
223 element.style.display = 'inline-block'; 223 element.style.display = 'inline-block';
224 var shadowRoot = UI.createShadowRootWithCoreStyles(element, 'components/domUti ls.css'); 224 var shadowRoot = UI.createShadowRootWithCoreStyles(element, 'components/domUti ls.css');
225 var contentElement = shadowRoot.createChild('table', 'stack-preview-container' ); 225 var contentElement = shadowRoot.createChild('table', 'stack-preview-container' );
226 226
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 638
639 /** 639 /**
640 * @override 640 * @override
641 * @param {!SDK.DOMNode} node 641 * @param {!SDK.DOMNode} node
642 * @return {?{title: string, color: string}} 642 * @return {?{title: string, color: string}}
643 */ 643 */
644 decorate(node) { 644 decorate(node) {
645 return {title: this._title, color: this._color}; 645 return {title: this._title, color: this._color};
646 } 646 }
647 }; 647 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698