Changeset 140120 in webkit


Ignore:
Timestamp:
Jan 18, 2013 3:48:35 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: fix Closure r2388 warnings
https://bugs.webkit.org/show_bug.cgi?id=107252

Patch by Andrey Lushnikov <lushnikov@chromium.org> on 2013-01-18
Reviewed by Pavel Feldman.

Surround all casts with brackets to avoid Closure warnings.

No new tests: no change in behaviour.

  • inspector/front-end/BottomUpProfileDataGridTree.js:

(WebInspector.BottomUpProfileDataGridTree):

  • inspector/front-end/BreakpointManager.js:

(WebInspector.BreakpointManager.prototype._filteredBreakpointLocations):
(WebInspector.BreakpointManager.prototype.toggleAllBreakpoints):
(WebInspector.BreakpointManager.prototype.removeAllBreakpoints):

  • inspector/front-end/DOMAgent.js:

(WebInspector.DOMAgent.prototype.pushNodeToFrontend):
(WebInspector.DOMAgent.prototype.pushNodeByPathToFrontend):
(WebInspector.DOMAgent.prototype.querySelector):
(WebInspector.DOMAgent.prototype.querySelectorAll):

  • inspector/front-end/DefaultScriptMapping.js:

(WebInspector.DefaultScriptMapping.prototype._scriptEdited):

  • inspector/front-end/ScriptSnippetModel.js:

(WebInspector.SnippetScriptMapping.prototype.rawLocationToUILocation):

  • inspector/front-end/TopDownProfileDataGridTree.js:

(WebInspector.TopDownProfileDataGridTree):
(WebInspector.TopDownProfileDataGridTree.prototype.exclude):

Location:
trunk/Source/WebCore
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r140115 r140120  
     12013-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
    1312013-01-18  Takashi Sakamoto  <tasak@google.com>
    232
  • trunk/Source/WebCore/inspector/front-end/BottomUpProfileDataGridTree.js

    r130149 r140120  
    209209
    210210    // 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);
    213213    WebInspector.BottomUpProfileDataGridNode.prototype._populate.call(node);
    214214
  • trunk/Source/WebCore/inspector/front-end/BreakpointManager.js

    r139454 r140120  
    160160    {
    161161        var result = [];
    162         var breakpoints = /** @type {Array.<WebInspector.BreakpointManager.Breakpoint>} */ this._breakpoints.keys();
     162        var breakpoints = /** @type {Array.<WebInspector.BreakpointManager.Breakpoint>} */(this._breakpoints.keys());
    163163        for (var i = 0; i < breakpoints.length; ++i) {
    164164            var breakpoint = breakpoints[i];
     
    199199    toggleAllBreakpoints: function(toggleState)
    200200    {
    201         var breakpoints = /** @type {Array.<WebInspector.BreakpointManager.Breakpoint>} */ this._breakpoints.keys();
     201        var breakpoints = /** @type {Array.<WebInspector.BreakpointManager.Breakpoint>} */(this._breakpoints.keys());
    202202        for (var i = 0; i < breakpoints.length; ++i) {
    203203            var breakpoint = breakpoints[i];
     
    209209    removeAllBreakpoints: function()
    210210    {
    211         var breakpoints = /** @type {Array.<WebInspector.BreakpointManager.Breakpoint>} */ this._breakpoints.keys();
     211        var breakpoints = /** @type {Array.<WebInspector.BreakpointManager.Breakpoint>} */(this._breakpoints.keys());
    212212        for (var i = 0; i < breakpoints.length; ++i)
    213213            breakpoints[i].remove();
  • trunk/Source/WebCore/inspector/front-end/DOMAgent.js

    r139873 r140120  
    894894    pushNodeToFrontend: function(objectId, callback)
    895895    {
    896         var callbackCast = /** @type {function(*)} */ callback;
     896        var callbackCast = /** @type {function(*)} */(callback);
    897897        this._dispatchWhenDocumentAvailable(DOMAgent.requestNode.bind(DOMAgent, objectId), callbackCast);
    898898    },
     
    904904    pushNodeByPathToFrontend: function(path, callback)
    905905    {
    906         var callbackCast = /** @type {function(*)} */ callback;
     906        var callbackCast = /** @type {function(*)} */(callback);
    907907        this._dispatchWhenDocumentAvailable(DOMAgent.pushNodeByPathToFrontend.bind(DOMAgent, path), callbackCast);
    908908    },
     
    933933    _dispatchWhenDocumentAvailable: function(func, callback)
    934934    {
    935         var callbackWrapper = /** @type {function(?Protocol.Error, *=)} */ this._wrapClientCallback(callback);
     935        var callbackWrapper = /** @type {function(?Protocol.Error, *=)} */(this._wrapClientCallback(callback));
    936936
    937937        function onDocumentAvailable()
     
    12101210    querySelector: function(nodeId, selectors, callback)
    12111211    {
    1212         var callbackCast = /** @type {function(*)|undefined} */callback;
     1212        var callbackCast = /** @type {function(*)|undefined} */(callback);
    12131213        DOMAgent.querySelector(nodeId, selectors, this._wrapClientCallback(callbackCast));
    12141214    },
     
    12211221    querySelectorAll: function(nodeId, selectors, callback)
    12221222    {
    1223         var callbackCast = /** @type {function(*)|undefined} */callback;
     1223        var callbackCast = /** @type {function(*)|undefined} */(callback);
    12241224        DOMAgent.querySelectorAll(nodeId, selectors, this._wrapClientCallback(callbackCast));
    12251225    },
  • trunk/Source/WebCore/inspector/front-end/DefaultScriptMapping.js

    r139454 r140120  
    9595    _scriptEdited: function(scriptId, event)
    9696    {
    97         var content = /** @type {string} */ event.data;
     97        var content = /** @type {string} */(event.data);
    9898        this._uiSourceCodeForScriptId[scriptId].addRevision(content);
    9999    },
  • trunk/Source/WebCore/inspector/front-end/ScriptSnippetModel.js

    r139885 r140120  
    474474    rawLocationToUILocation: function(rawLocation)
    475475    {
    476         var debuggerModelLocation = /** @type {WebInspector.DebuggerModel.Location} */ rawLocation;
     476        var debuggerModelLocation = /** @type {WebInspector.DebuggerModel.Location} */(rawLocation);
    477477        return this._scriptSnippetModel._rawLocationToUILocation(debuggerModelLocation);
    478478    },
  • trunk/Source/WebCore/inspector/front-end/TopDownProfileDataGridTree.js

    r130149 r140120  
    8181    this._remainingChildren = profileNode.children;
    8282
    83     var any = /** @type{*} */this;
    84     var node = /** @type{WebInspector.ProfileDataGridNode} */any;
     83    var any = /** @type{*} */(this);
     84    var node = /** @type{WebInspector.ProfileDataGridNode} */(any);
    8585    WebInspector.TopDownProfileDataGridNode.prototype._populate.call(node);
    8686}
     
    108108        var excludedCallUID = profileDataGrideNode.callUID;
    109109
    110         var any = /** @type{*} */this;
    111         var node = /** @type{WebInspector.TopDownProfileDataGridNode} */any;
     110        var any = /** @type{*} */(this);
     111        var node = /** @type{WebInspector.TopDownProfileDataGridNode} */(any);
    112112        WebInspector.TopDownProfileDataGridNode.prototype._exclude.call(node, excludedCallUID);
    113113
Note: See TracChangeset for help on using the changeset viewer.