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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 lastNode = lastChild; | 267 lastNode = lastChild; |
268 } | 268 } |
269 lastNode.revealAndSelect(); | 269 lastNode.revealAndSelect(); |
270 }, | 270 }, |
271 | 271 |
272 /** | 272 /** |
273 * @param {boolean} enable | 273 * @param {boolean} enable |
274 */ | 274 */ |
275 _enableWaitIcon: function(enable) | 275 _enableWaitIcon: function(enable) |
276 { | 276 { |
277 this._spinnerIcon.enableStyleClass("hidden", !enable); | 277 this._spinnerIcon.classList.toggle("hidden", !enable); |
278 this._debugInfoElement.enableStyleClass("hidden", enable); | 278 this._debugInfoElement.classList.toggle("hidden", enable); |
279 }, | 279 }, |
280 | 280 |
281 _replayTraceLog: function() | 281 _replayTraceLog: function() |
282 { | 282 { |
283 if (this._pendingReplayTraceLogEvent) | 283 if (this._pendingReplayTraceLogEvent) |
284 return; | 284 return; |
285 var index = this._selectedCallIndex(); | 285 var index = this._selectedCallIndex(); |
286 if (index === -1 || index === this._lastReplayCallIndex) | 286 if (index === -1 || index === this._lastReplayCallIndex) |
287 return; | 287 return; |
288 this._lastReplayCallIndex = index; | 288 this._lastReplayCallIndex = index; |
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
901 * @return {string|undefined} | 901 * @return {string|undefined} |
902 */ | 902 */ |
903 _selectedFrameId: function() | 903 _selectedFrameId: function() |
904 { | 904 { |
905 var option = this._frameSelector.selectedOption(); | 905 var option = this._frameSelector.selectedOption(); |
906 return option ? option.value : undefined; | 906 return option ? option.value : undefined; |
907 }, | 907 }, |
908 | 908 |
909 _dispatchViewUpdatedEvent: function() | 909 _dispatchViewUpdatedEvent: function() |
910 { | 910 { |
911 this._frameSelector.element.enableStyleClass("hidden", this._frameSelect
or.size() <= 1); | 911 this._frameSelector.element.classList.toggle("hidden", this._frameSelect
or.size() <= 1); |
912 this.dispatchEventToListeners(WebInspector.ProfileType.Events.ViewUpdate
d); | 912 this.dispatchEventToListeners(WebInspector.ProfileType.Events.ViewUpdate
d); |
913 }, | 913 }, |
914 | 914 |
915 /** | 915 /** |
916 * @override | 916 * @override |
917 * @return {boolean} | 917 * @return {boolean} |
918 */ | 918 */ |
919 isInstantProfile: function() | 919 isInstantProfile: function() |
920 { | 920 { |
921 return this._isSingleFrameMode(); | 921 return this._isSingleFrameMode(); |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1248 }, | 1248 }, |
1249 | 1249 |
1250 clearResourceStates: function() | 1250 clearResourceStates: function() |
1251 { | 1251 { |
1252 this._currentResourceStates = {}; | 1252 this._currentResourceStates = {}; |
1253 this.dispatchEventToListeners(WebInspector.CanvasTraceLogPlayerProxy.Eve
nts.CanvasReplayStateChanged); | 1253 this.dispatchEventToListeners(WebInspector.CanvasTraceLogPlayerProxy.Eve
nts.CanvasReplayStateChanged); |
1254 }, | 1254 }, |
1255 | 1255 |
1256 __proto__: WebInspector.Object.prototype | 1256 __proto__: WebInspector.Object.prototype |
1257 } | 1257 } |
OLD | NEW |