OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 if (this.isShowing()) | 113 if (this.isShowing()) |
114 this.update(); | 114 this.update(); |
115 }, | 115 }, |
116 | 116 |
117 /** | 117 /** |
118 * @param {?WebInspector.LayerTreeBase} layerTree | 118 * @param {?WebInspector.LayerTreeBase} layerTree |
119 * @override | 119 * @override |
120 */ | 120 */ |
121 setLayerTree: function(layerTree) { }, | 121 setLayerTree: function(layerTree) { }, |
122 | 122 |
| 123 /** |
| 124 * @override |
| 125 */ |
123 wasShown: function() | 126 wasShown: function() |
124 { | 127 { |
125 WebInspector.Widget.prototype.wasShown.call(this); | 128 WebInspector.Widget.prototype.wasShown.call(this); |
126 this.update(); | 129 this.update(); |
127 }, | 130 }, |
128 | 131 |
129 /** | 132 /** |
130 * @param {number} index | 133 * @param {number} index |
131 * @param {!Event} event | 134 * @param {!Event} event |
132 */ | 135 */ |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 var text = WebInspector.LayerDetailsView.CompositingReasonDetail[com
positingReasons[i]] || compositingReasons[i]; | 226 var text = WebInspector.LayerDetailsView.CompositingReasonDetail[com
positingReasons[i]] || compositingReasons[i]; |
224 // If the text is more than one word but does not terminate with per
iod, add the period. | 227 // If the text is more than one word but does not terminate with per
iod, add the period. |
225 if (/\s.*[^.]$/.test(text)) | 228 if (/\s.*[^.]$/.test(text)) |
226 text += "."; | 229 text += "."; |
227 list.createChild("li").textContent = text; | 230 list.createChild("li").textContent = text; |
228 } | 231 } |
229 }, | 232 }, |
230 | 233 |
231 __proto__: WebInspector.Widget.prototype | 234 __proto__: WebInspector.Widget.prototype |
232 }; | 235 }; |
OLD | NEW |