| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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 CSSTracker.CSSTrackerView = class extends UI.VBox { | 5 CSSTracker.CSSTrackerView = class extends UI.VBox { |
| 6 constructor() { | 6 constructor() { |
| 7 super(true); | 7 super(true); |
| 8 | 8 |
| 9 this.registerRequiredCSS('css_tracker/cssTrackerView.css'); | 9 this.registerRequiredCSS('css_tracker/cssTrackerView.css'); |
| 10 | 10 |
| (...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 */ | 375 */ |
| 376 _showMoreRulesElementSelected(startMatchIndex) { | 376 _showMoreRulesElementSelected(startMatchIndex) { |
| 377 if (!this._showAllRulesTreeElement) | 377 if (!this._showAllRulesTreeElement) |
| 378 return; | 378 return; |
| 379 this.removeChild(this._showAllRulesTreeElement); | 379 this.removeChild(this._showAllRulesTreeElement); |
| 380 this._appendRules(startMatchIndex, this._unusedRules.length); | 380 this._appendRules(startMatchIndex, this._unusedRules.length); |
| 381 } | 381 } |
| 382 }; | 382 }; |
| 383 | 383 |
| 384 /** | 384 /** |
| 385 * @implements {Sources.UISourceCodeFrame.LineDecorator} | 385 * @implements {SourceFrame.UISourceCodeFrame.LineDecorator} |
| 386 */ | 386 */ |
| 387 CSSTracker.CSSTrackerView.LineDecorator = class { | 387 CSSTracker.CSSTrackerView.LineDecorator = class { |
| 388 /** | 388 /** |
| 389 * @override | 389 * @override |
| 390 * @param {!Workspace.UISourceCode} uiSourceCode | 390 * @param {!Workspace.UISourceCode} uiSourceCode |
| 391 * @param {!TextEditor.CodeMirrorTextEditor} textEditor | 391 * @param {!TextEditor.CodeMirrorTextEditor} textEditor |
| 392 */ | 392 */ |
| 393 decorate(uiSourceCode, textEditor) { | 393 decorate(uiSourceCode, textEditor) { |
| 394 var gutterType = 'CodeMirror-gutter-coverage'; | 394 var gutterType = 'CodeMirror-gutter-coverage'; |
| 395 | 395 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 408 else | 408 else |
| 409 element.className = 'text-editor-css-rule-unused-marker'; | 409 element.className = 'text-editor-css-rule-unused-marker'; |
| 410 | 410 |
| 411 textEditor.setGutterDecoration(line, gutterType, element); | 411 textEditor.setGutterDecoration(line, gutterType, element); |
| 412 } | 412 } |
| 413 } | 413 } |
| 414 } | 414 } |
| 415 }; | 415 }; |
| 416 | 416 |
| 417 CSSTracker.CSSTrackerView.LineDecorator.type = 'coverage'; | 417 CSSTracker.CSSTrackerView.LineDecorator.type = 'coverage'; |
| OLD | NEW |