| OLD | NEW | 
|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 /** | 5 /** | 
| 6  * @constructor | 6  * @constructor | 
| 7  * @implements {WebInspector.TargetManager.Observer} | 7  * @implements {WebInspector.TargetManager.Observer} | 
| 8  * @param {!WebInspector.TargetManager} targetManager | 8  * @param {!WebInspector.TargetManager} targetManager | 
| 9  * @param {!WebInspector.Workspace} workspace | 9  * @param {!WebInspector.Workspace} workspace | 
| 10  * @param {!WebInspector.NetworkMapping} networkMapping | 10  * @param {!WebInspector.NetworkMapping} networkMapping | 
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 93      */ | 93      */ | 
| 94     updateLocations: function(header) | 94     updateLocations: function(header) | 
| 95     { | 95     { | 
| 96         var info = this._headerInfo(header); | 96         var info = this._headerInfo(header); | 
| 97         if (info) | 97         if (info) | 
| 98             info._updateLocations(); | 98             info._updateLocations(); | 
| 99     }, | 99     }, | 
| 100 | 100 | 
| 101     /** | 101     /** | 
| 102      * @param {!WebInspector.CSSLocation} rawLocation | 102      * @param {!WebInspector.CSSLocation} rawLocation | 
| 103      * @param {function(!WebInspector.UILocation):(boolean|undefined)} updateDel
     egate | 103      * @param {function(!WebInspector.LiveLocation)} updateDelegate | 
| 104      * @return {!WebInspector.CSSWorkspaceBinding.LiveLocation} | 104      * @return {!WebInspector.CSSWorkspaceBinding.LiveLocation} | 
| 105      */ | 105      */ | 
| 106     createLiveLocation: function(rawLocation, updateDelegate) | 106     createLiveLocation: function(rawLocation, updateDelegate) | 
| 107     { | 107     { | 
| 108         var header = rawLocation.styleSheetId ? rawLocation.cssModel().styleShee
     tHeaderForId(rawLocation.styleSheetId) : null; | 108         var header = rawLocation.styleSheetId ? rawLocation.cssModel().styleShee
     tHeaderForId(rawLocation.styleSheetId) : null; | 
| 109         return new WebInspector.CSSWorkspaceBinding.LiveLocation(rawLocation.css
     Model(), header, rawLocation, this, updateDelegate); | 109         return new WebInspector.CSSWorkspaceBinding.LiveLocation(rawLocation.css
     Model(), header, rawLocation, this, updateDelegate); | 
| 110     }, | 110     }, | 
| 111 | 111 | 
| 112     /** | 112     /** | 
| 113      * @param {!WebInspector.CSSWorkspaceBinding.LiveLocation} location | 113      * @param {!WebInspector.CSSWorkspaceBinding.LiveLocation} location | 
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 307     } | 307     } | 
| 308 } | 308 } | 
| 309 | 309 | 
| 310 /** | 310 /** | 
| 311  * @constructor | 311  * @constructor | 
| 312  * @extends {WebInspector.LiveLocation} | 312  * @extends {WebInspector.LiveLocation} | 
| 313  * @param {!WebInspector.CSSStyleModel} cssModel | 313  * @param {!WebInspector.CSSStyleModel} cssModel | 
| 314  * @param {?WebInspector.CSSStyleSheetHeader} header | 314  * @param {?WebInspector.CSSStyleSheetHeader} header | 
| 315  * @param {!WebInspector.CSSLocation} rawLocation | 315  * @param {!WebInspector.CSSLocation} rawLocation | 
| 316  * @param {!WebInspector.CSSWorkspaceBinding} binding | 316  * @param {!WebInspector.CSSWorkspaceBinding} binding | 
| 317  * @param {function(!WebInspector.UILocation):(boolean|undefined)} updateDelegat
     e | 317  * @param {function(!WebInspector.LiveLocation)} updateDelegate | 
| 318  */ | 318  */ | 
| 319 WebInspector.CSSWorkspaceBinding.LiveLocation = function(cssModel, header, rawLo
     cation, binding, updateDelegate) | 319 WebInspector.CSSWorkspaceBinding.LiveLocation = function(cssModel, header, rawLo
     cation, binding, updateDelegate) | 
| 320 { | 320 { | 
| 321     WebInspector.LiveLocation.call(this, updateDelegate); | 321     WebInspector.LiveLocation.call(this, updateDelegate); | 
| 322     this._cssModel = cssModel; | 322     this._cssModel = cssModel; | 
| 323     this._rawLocation = rawLocation; | 323     this._rawLocation = rawLocation; | 
| 324     this._binding = binding; | 324     this._binding = binding; | 
| 325     if (!header) | 325     if (!header) | 
| 326         this._clearStyleSheet(); | 326         this._clearStyleSheet(); | 
| 327     else | 327     else | 
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 432      * @param {number} lineNumber | 432      * @param {number} lineNumber | 
| 433      * @return {boolean} | 433      * @return {boolean} | 
| 434      */ | 434      */ | 
| 435     uiLineHasMapping: function(uiSourceCode, lineNumber) { } | 435     uiLineHasMapping: function(uiSourceCode, lineNumber) { } | 
| 436 } | 436 } | 
| 437 | 437 | 
| 438 /** | 438 /** | 
| 439  * @type {!WebInspector.CSSWorkspaceBinding} | 439  * @type {!WebInspector.CSSWorkspaceBinding} | 
| 440  */ | 440  */ | 
| 441 WebInspector.cssWorkspaceBinding; | 441 WebInspector.cssWorkspaceBinding; | 
| OLD | NEW | 
|---|