| 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 |
| 788 default: | 794 default: |
| 789 cell.title = Common.UIString('Other'); | 795 cell.title = Common.UIString('Other'); |
| 790 cell.classList.add('network-dim-cell'); | 796 cell.classList.add('network-dim-cell'); |
| 791 cell.appendChild(createTextNode(Common.UIString('Other'))); | 797 cell.appendChild(createTextNode(Common.UIString('Other'))); |
| 792 } | 798 } |
| 793 } | 799 } |
| 794 | 800 |
| 795 /** | 801 /** |
| 796 * @param {!Element} cell | 802 * @param {!Element} cell |
| 797 */ | 803 */ |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 882 * @param {boolean=} supressSelectedEvent | 888 * @param {boolean=} supressSelectedEvent |
| 883 */ | 889 */ |
| 884 select(supressSelectedEvent) { | 890 select(supressSelectedEvent) { |
| 885 if (this.expanded) { | 891 if (this.expanded) { |
| 886 this.collapse(); | 892 this.collapse(); |
| 887 return; | 893 return; |
| 888 } | 894 } |
| 889 this.expand(); | 895 this.expand(); |
| 890 } | 896 } |
| 891 }; | 897 }; |
| OLD | NEW |