Changeset 140120 in webkit
- Timestamp:
- Jan 18, 2013 3:48:35 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r140115 r140120 1 2013-01-18 Andrey Lushnikov <lushnikov@chromium.org> 2 3 Web Inspector: fix Closure r2388 warnings 4 https://bugs.webkit.org/show_bug.cgi?id=107252 5 6 Reviewed by Pavel Feldman. 7 8 Surround all casts with brackets to avoid Closure warnings. 9 10 No new tests: no change in behaviour. 11 12 * inspector/front-end/BottomUpProfileDataGridTree.js: 13 (WebInspector.BottomUpProfileDataGridTree): 14 * inspector/front-end/BreakpointManager.js: 15 (WebInspector.BreakpointManager.prototype._filteredBreakpointLocations): 16 (WebInspector.BreakpointManager.prototype.toggleAllBreakpoints): 17 (WebInspector.BreakpointManager.prototype.removeAllBreakpoints): 18 * inspector/front-end/DOMAgent.js: 19 (WebInspector.DOMAgent.prototype.pushNodeToFrontend): 20 (WebInspector.DOMAgent.prototype.pushNodeByPathToFrontend): 21 (WebInspector.DOMAgent.prototype.querySelector): 22 (WebInspector.DOMAgent.prototype.querySelectorAll): 23 * inspector/front-end/DefaultScriptMapping.js: 24 (WebInspector.DefaultScriptMapping.prototype._scriptEdited): 25 * inspector/front-end/ScriptSnippetModel.js: 26 (WebInspector.SnippetScriptMapping.prototype.rawLocationToUILocation): 27 * inspector/front-end/TopDownProfileDataGridTree.js: 28 (WebInspector.TopDownProfileDataGridTree): 29 (WebInspector.TopDownProfileDataGridTree.prototype.exclude): 30 1 31 2013-01-18 Takashi Sakamoto <tasak@google.com> 2 32 -
trunk/Source/WebCore/inspector/front-end/BottomUpProfileDataGridTree.js
r130149 r140120 209 209 210 210 // Populate the top level nodes. 211 var any = /** @type{*} */ this;212 var node = /** @type{WebInspector.ProfileDataGridNode} */ any;211 var any = /** @type{*} */(this); 212 var node = /** @type{WebInspector.ProfileDataGridNode} */(any); 213 213 WebInspector.BottomUpProfileDataGridNode.prototype._populate.call(node); 214 214 -
trunk/Source/WebCore/inspector/front-end/BreakpointManager.js
r139454 r140120 160 160 { 161 161 var result = []; 162 var breakpoints = /** @type {Array.<WebInspector.BreakpointManager.Breakpoint>} */ this._breakpoints.keys();162 var breakpoints = /** @type {Array.<WebInspector.BreakpointManager.Breakpoint>} */(this._breakpoints.keys()); 163 163 for (var i = 0; i < breakpoints.length; ++i) { 164 164 var breakpoint = breakpoints[i]; … … 199 199 toggleAllBreakpoints: function(toggleState) 200 200 { 201 var breakpoints = /** @type {Array.<WebInspector.BreakpointManager.Breakpoint>} */ this._breakpoints.keys();201 var breakpoints = /** @type {Array.<WebInspector.BreakpointManager.Breakpoint>} */(this._breakpoints.keys()); 202 202 for (var i = 0; i < breakpoints.length; ++i) { 203 203 var breakpoint = breakpoints[i]; … … 209 209 removeAllBreakpoints: function() 210 210 { 211 var breakpoints = /** @type {Array.<WebInspector.BreakpointManager.Breakpoint>} */ this._breakpoints.keys();211 var breakpoints = /** @type {Array.<WebInspector.BreakpointManager.Breakpoint>} */(this._breakpoints.keys()); 212 212 for (var i = 0; i < breakpoints.length; ++i) 213 213 breakpoints[i].remove(); -
trunk/Source/WebCore/inspector/front-end/DOMAgent.js
r139873 r140120 894 894 pushNodeToFrontend: function(objectId, callback) 895 895 { 896 var callbackCast = /** @type {function(*)} */ callback;896 var callbackCast = /** @type {function(*)} */(callback); 897 897 this._dispatchWhenDocumentAvailable(DOMAgent.requestNode.bind(DOMAgent, objectId), callbackCast); 898 898 }, … … 904 904 pushNodeByPathToFrontend: function(path, callback) 905 905 { 906 var callbackCast = /** @type {function(*)} */ callback;906 var callbackCast = /** @type {function(*)} */(callback); 907 907 this._dispatchWhenDocumentAvailable(DOMAgent.pushNodeByPathToFrontend.bind(DOMAgent, path), callbackCast); 908 908 }, … … 933 933 _dispatchWhenDocumentAvailable: function(func, callback) 934 934 { 935 var callbackWrapper = /** @type {function(?Protocol.Error, *=)} */ this._wrapClientCallback(callback);935 var callbackWrapper = /** @type {function(?Protocol.Error, *=)} */(this._wrapClientCallback(callback)); 936 936 937 937 function onDocumentAvailable() … … 1210 1210 querySelector: function(nodeId, selectors, callback) 1211 1211 { 1212 var callbackCast = /** @type {function(*)|undefined} */ callback;1212 var callbackCast = /** @type {function(*)|undefined} */(callback); 1213 1213 DOMAgent.querySelector(nodeId, selectors, this._wrapClientCallback(callbackCast)); 1214 1214 }, … … 1221 1221 querySelectorAll: function(nodeId, selectors, callback) 1222 1222 { 1223 var callbackCast = /** @type {function(*)|undefined} */ callback;1223 var callbackCast = /** @type {function(*)|undefined} */(callback); 1224 1224 DOMAgent.querySelectorAll(nodeId, selectors, this._wrapClientCallback(callbackCast)); 1225 1225 }, -
trunk/Source/WebCore/inspector/front-end/DefaultScriptMapping.js
r139454 r140120 95 95 _scriptEdited: function(scriptId, event) 96 96 { 97 var content = /** @type {string} */ event.data;97 var content = /** @type {string} */(event.data); 98 98 this._uiSourceCodeForScriptId[scriptId].addRevision(content); 99 99 }, -
trunk/Source/WebCore/inspector/front-end/ScriptSnippetModel.js
r139885 r140120 474 474 rawLocationToUILocation: function(rawLocation) 475 475 { 476 var debuggerModelLocation = /** @type {WebInspector.DebuggerModel.Location} */ rawLocation;476 var debuggerModelLocation = /** @type {WebInspector.DebuggerModel.Location} */(rawLocation); 477 477 return this._scriptSnippetModel._rawLocationToUILocation(debuggerModelLocation); 478 478 }, -
trunk/Source/WebCore/inspector/front-end/TopDownProfileDataGridTree.js
r130149 r140120 81 81 this._remainingChildren = profileNode.children; 82 82 83 var any = /** @type{*} */ this;84 var node = /** @type{WebInspector.ProfileDataGridNode} */ any;83 var any = /** @type{*} */(this); 84 var node = /** @type{WebInspector.ProfileDataGridNode} */(any); 85 85 WebInspector.TopDownProfileDataGridNode.prototype._populate.call(node); 86 86 } … … 108 108 var excludedCallUID = profileDataGrideNode.callUID; 109 109 110 var any = /** @type{*} */ this;111 var node = /** @type{WebInspector.TopDownProfileDataGridNode} */ any;110 var any = /** @type{*} */(this); 111 var node = /** @type{WebInspector.TopDownProfileDataGridNode} */(any); 112 112 WebInspector.TopDownProfileDataGridNode.prototype._exclude.call(node, excludedCallUID); 113 113
Note: See TracChangeset
for help on using the changeset viewer.