| 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 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * | 10 * |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 * @param {string} promptValue | 105 * @param {string} promptValue |
| 106 */ | 106 */ |
| 107 selectItem: function(itemIndex, promptValue) | 107 selectItem: function(itemIndex, promptValue) |
| 108 { | 108 { |
| 109 var rule = this._cssParser.rules()[itemIndex]; | 109 var rule = this._cssParser.rules()[itemIndex]; |
| 110 var lineNumber = rule.lineNumber; | 110 var lineNumber = rule.lineNumber; |
| 111 if (!isNaN(lineNumber) && lineNumber >= 0) | 111 if (!isNaN(lineNumber) && lineNumber >= 0) |
| 112 this._selectItemCallback(lineNumber, rule.columnNumber); | 112 this._selectItemCallback(lineNumber, rule.columnNumber); |
| 113 }, | 113 }, |
| 114 | 114 |
| 115 /** |
| 116 * @override |
| 117 */ |
| 115 dispose: function() | 118 dispose: function() |
| 116 { | 119 { |
| 117 this._cssParser.dispose(); | 120 this._cssParser.dispose(); |
| 118 }, | 121 }, |
| 119 | 122 |
| 120 __proto__: WebInspector.FilteredListWidget.Delegate.prototype | 123 __proto__: WebInspector.FilteredListWidget.Delegate.prototype |
| 121 }; | 124 }; |
| OLD | NEW |