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(this._cssModel.target(), uiSourceCod
e.url || "", lineNumber, columnNumber); | 75 return new WebInspector.CSSLocation(this._cssModel.target(), null, uiSou
rceCode.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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 this._uiSourceCode.addRevision(content); | 391 this._uiSourceCode.addRevision(content); |
392 delete this._isAddingRevision; | 392 delete this._isAddingRevision; |
393 }, | 393 }, |
394 | 394 |
395 dispose: function() | 395 dispose: function() |
396 { | 396 { |
397 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
WorkingCopyCommitted, this._workingCopyCommitted, this); | 397 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
WorkingCopyCommitted, this._workingCopyCommitted, this); |
398 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
WorkingCopyChanged, this._workingCopyChanged, this); | 398 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
WorkingCopyChanged, this._workingCopyChanged, this); |
399 } | 399 } |
400 } | 400 } |
OLD | NEW |