| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> | 3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> |
| 4 * Copyright (C) 2011 Google Inc. All rights reserved. | 4 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 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 767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 778 this._linkifiedInitiatorAnchor = this.parentView().linkifier.linkifySc
riptLocation( | 778 this._linkifiedInitiatorAnchor = this.parentView().linkifier.linkifySc
riptLocation( |
| 779 request.target(), initiator.scriptId, initiator.url, initiator.lin
eNumber, initiator.columnNumber); | 779 request.target(), initiator.scriptId, initiator.url, initiator.lin
eNumber, initiator.columnNumber); |
| 780 this._linkifiedInitiatorAnchor.title = ''; | 780 this._linkifiedInitiatorAnchor.title = ''; |
| 781 } | 781 } |
| 782 cell.appendChild(this._linkifiedInitiatorAnchor); | 782 cell.appendChild(this._linkifiedInitiatorAnchor); |
| 783 this._appendSubtitle(cell, Common.UIString('Script')); | 783 this._appendSubtitle(cell, Common.UIString('Script')); |
| 784 cell.classList.add('network-script-initiated'); | 784 cell.classList.add('network-script-initiated'); |
| 785 cell.request = request; | 785 cell.request = request; |
| 786 break; | 786 break; |
| 787 | 787 |
| 788 case SDK.NetworkRequest.InitiatorType.Preload: | |
| 789 cell.title = Common.UIString('Preload'); | |
| 790 cell.classList.add('network-dim-cell'); | |
| 791 cell.appendChild(createTextNode(Common.UIString('Preload'))); | |
| 792 break; | |
| 793 | |
| 794 default: | 788 default: |
| 795 cell.title = Common.UIString('Other'); | 789 cell.title = Common.UIString('Other'); |
| 796 cell.classList.add('network-dim-cell'); | 790 cell.classList.add('network-dim-cell'); |
| 797 cell.appendChild(createTextNode(Common.UIString('Other'))); | 791 cell.appendChild(createTextNode(Common.UIString('Other'))); |
| 798 } | 792 } |
| 799 } | 793 } |
| 800 | 794 |
| 801 /** | 795 /** |
| 802 * @param {!Element} cell | 796 * @param {!Element} cell |
| 803 */ | 797 */ |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 888 * @param {boolean=} supressSelectedEvent | 882 * @param {boolean=} supressSelectedEvent |
| 889 */ | 883 */ |
| 890 select(supressSelectedEvent) { | 884 select(supressSelectedEvent) { |
| 891 if (this.expanded) { | 885 if (this.expanded) { |
| 892 this.collapse(); | 886 this.collapse(); |
| 893 return; | 887 return; |
| 894 } | 888 } |
| 895 this.expand(); | 889 this.expand(); |
| 896 } | 890 } |
| 897 }; | 891 }; |
| OLD | NEW |