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 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1046 } | 1046 } |
1047 }, | 1047 }, |
1048 | 1048 |
1049 /** | 1049 /** |
1050 * @param {!Element} anchor | 1050 * @param {!Element} anchor |
1051 * @param {!WebInspector.Popover} popover | 1051 * @param {!WebInspector.Popover} popover |
1052 */ | 1052 */ |
1053 _showPopover: function(anchor, popover) | 1053 _showPopover: function(anchor, popover) |
1054 { | 1054 { |
1055 var content; | 1055 var content; |
1056 if (anchor.classList.contains("network-script-initiated")) | 1056 if (anchor.classList.contains("network-script-initiated")) { |
1057 content = this._generateScriptInitiatedPopoverContent(anchor.request
); | 1057 content = this._generateScriptInitiatedPopoverContent(anchor.request
); |
1058 else | 1058 popover.setCanShrink(true); |
| 1059 } else { |
1059 content = WebInspector.RequestTimingView.createTimingTable(anchor.pa
rentElement.request); | 1060 content = WebInspector.RequestTimingView.createTimingTable(anchor.pa
rentElement.request); |
| 1061 popover.setCanShrink(false); |
| 1062 } |
1060 popover.show(content, anchor); | 1063 popover.show(content, anchor); |
1061 }, | 1064 }, |
1062 | 1065 |
1063 _onHidePopover: function() | 1066 _onHidePopover: function() |
1064 { | 1067 { |
1065 this._linkifier.reset(); | 1068 this._linkifier.reset(); |
1066 }, | 1069 }, |
1067 | 1070 |
1068 /** | 1071 /** |
1069 * @param {!WebInspector.NetworkRequest} request | 1072 * @param {!WebInspector.NetworkRequest} request |
(...skipping 2061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3131 | 3134 |
3132 WebInspector.NetworkPanelFactory.prototype = { | 3135 WebInspector.NetworkPanelFactory.prototype = { |
3133 /** | 3136 /** |
3134 * @return {!WebInspector.Panel} | 3137 * @return {!WebInspector.Panel} |
3135 */ | 3138 */ |
3136 createPanel: function() | 3139 createPanel: function() |
3137 { | 3140 { |
3138 return WebInspector.NetworkPanel._instance(); | 3141 return WebInspector.NetworkPanel._instance(); |
3139 } | 3142 } |
3140 } | 3143 } |
OLD | NEW |