| 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) IBM Corp. 2009 All rights reserved. | 3 * Copyright (C) IBM Corp. 2009 All rights reserved. |
| 4 * Copyright (C) 2010 Google Inc. All rights reserved. | 4 * Copyright (C) 2010 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 value = decodeURIComponent(value); | 122 value = decodeURIComponent(value); |
| 123 } catch (e) { | 123 } catch (e) { |
| 124 errorDecoding = true; | 124 errorDecoding = true; |
| 125 } | 125 } |
| 126 } | 126 } |
| 127 } | 127 } |
| 128 var div = createElementWithClass("div", className); | 128 var div = createElementWithClass("div", className); |
| 129 if (value === "") | 129 if (value === "") |
| 130 div.classList.add("empty-value"); | 130 div.classList.add("empty-value"); |
| 131 if (errorDecoding) | 131 if (errorDecoding) |
| 132 div.createChild("span", "error-message").textContent = WebInspector.
UIString("(unable to decode value)"); | 132 div.createChild("span", "header-decode-error").textContent = WebInsp
ector.UIString("(unable to decode value)"); |
| 133 else | 133 else |
| 134 div.textContent = value; | 134 div.textContent = value; |
| 135 return div; | 135 return div; |
| 136 }, | 136 }, |
| 137 | 137 |
| 138 _refreshURL: function() | 138 _refreshURL: function() |
| 139 { | 139 { |
| 140 this._urlItem.title = this._formatHeader(WebInspector.UIString("Request
URL"), this._request.url); | 140 this._urlItem.title = this._formatHeader(WebInspector.UIString("Request
URL"), this._request.url); |
| 141 }, | 141 }, |
| 142 | 142 |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 this._expandedSetting.set(true); | 530 this._expandedSetting.set(true); |
| 531 }, | 531 }, |
| 532 | 532 |
| 533 oncollapse: function() | 533 oncollapse: function() |
| 534 { | 534 { |
| 535 this._expandedSetting.set(false); | 535 this._expandedSetting.set(false); |
| 536 }, | 536 }, |
| 537 | 537 |
| 538 __proto__: TreeElement.prototype | 538 __proto__: TreeElement.prototype |
| 539 } | 539 } |
| OLD | NEW |