| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 }, | 65 }, |
| 66 | 66 |
| 67 /** | 67 /** |
| 68 * @param {!WebInspector.UISourceCode} uiSourceCode | 68 * @param {!WebInspector.UISourceCode} uiSourceCode |
| 69 * @param {number} lineNumber | 69 * @param {number} lineNumber |
| 70 * @param {number} columnNumber | 70 * @param {number} columnNumber |
| 71 * @return {!WebInspector.RawLocation} | 71 * @return {!WebInspector.RawLocation} |
| 72 */ | 72 */ |
| 73 uiLocationToRawLocation: function(uiSourceCode, lineNumber, columnNumber) | 73 uiLocationToRawLocation: function(uiSourceCode, lineNumber, columnNumber) |
| 74 { | 74 { |
| 75 return new WebInspector.CSSLocation(uiSourceCode.url || "", lineNumber,
columnNumber); | 75 return new WebInspector.CSSLocation(this._cssModel.target(), uiSourceCod
e.url || "", lineNumber, columnNumber); |
| 76 }, | 76 }, |
| 77 | 77 |
| 78 /** | 78 /** |
| 79 * @return {boolean} | 79 * @return {boolean} |
| 80 */ | 80 */ |
| 81 isIdentity: function() | 81 isIdentity: function() |
| 82 { | 82 { |
| 83 return true; | 83 return true; |
| 84 }, | 84 }, |
| 85 | 85 |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 this._uiSourceCode.addRevision(content); | 375 this._uiSourceCode.addRevision(content); |
| 376 delete this._isAddingRevision; | 376 delete this._isAddingRevision; |
| 377 }, | 377 }, |
| 378 | 378 |
| 379 dispose: function() | 379 dispose: function() |
| 380 { | 380 { |
| 381 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
WorkingCopyCommitted, this._workingCopyCommitted, this); | 381 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
WorkingCopyCommitted, this._workingCopyCommitted, this); |
| 382 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
WorkingCopyChanged, this._workingCopyChanged, this); | 382 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
WorkingCopyChanged, this._workingCopyChanged, this); |
| 383 } | 383 } |
| 384 } | 384 } |
| OLD | NEW |