OLD | NEW |
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) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
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 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1103 this._showRepeatCountElement(); | 1103 this._showRepeatCountElement(); |
1104 }, | 1104 }, |
1105 | 1105 |
1106 _showRepeatCountElement: function() | 1106 _showRepeatCountElement: function() |
1107 { | 1107 { |
1108 if (!this._element) | 1108 if (!this._element) |
1109 return; | 1109 return; |
1110 | 1110 |
1111 if (!this._repeatCountElement) { | 1111 if (!this._repeatCountElement) { |
1112 this._repeatCountElement = document.createElement("span"); | 1112 this._repeatCountElement = document.createElement("span"); |
1113 this._repeatCountElement.className = "bubble"; | 1113 this._repeatCountElement.className = "console-message-repeat-count"; |
1114 | 1114 |
1115 this._element.insertBefore(this._repeatCountElement, this._element.f
irstChild); | 1115 this._element.insertBefore(this._repeatCountElement, this._element.f
irstChild); |
1116 this._element.classList.add("repeated-message"); | 1116 this._element.classList.add("repeated-message"); |
1117 } | 1117 } |
1118 this._repeatCountElement.textContent = this._repeatCount; | 1118 this._repeatCountElement.textContent = this._repeatCount; |
1119 }, | 1119 }, |
1120 | 1120 |
1121 /** | 1121 /** |
1122 * @return {string} | 1122 * @return {string} |
1123 */ | 1123 */ |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1258 { | 1258 { |
1259 if (!this._wrapperElement) { | 1259 if (!this._wrapperElement) { |
1260 WebInspector.ConsoleViewMessage.prototype.toMessageElement.call(this
); | 1260 WebInspector.ConsoleViewMessage.prototype.toMessageElement.call(this
); |
1261 this._wrapperElement.classList.toggle("collapsed", this._collapsed); | 1261 this._wrapperElement.classList.toggle("collapsed", this._collapsed); |
1262 } | 1262 } |
1263 return this._wrapperElement; | 1263 return this._wrapperElement; |
1264 }, | 1264 }, |
1265 | 1265 |
1266 __proto__: WebInspector.ConsoleViewMessage.prototype | 1266 __proto__: WebInspector.ConsoleViewMessage.prototype |
1267 } | 1267 } |
OLD | NEW |