Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js

Issue 2472213005: DevTools: introduce "Track CSS Usage" experiment (Closed)
Patch Set: Unused CSS highlight in sources panel Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 * @implements {WebInspector.SourcesView.EditorAction} 5 * @implements {WebInspector.SourcesView.EditorAction}
6 * @unrestricted 6 * @unrestricted
7 */ 7 */
8 WebInspector.InplaceFormatterEditorAction = class { 8 WebInspector.InplaceFormatterEditorAction = class {
9 /** 9 /**
10 * @param {!WebInspector.Event} event 10 * @param {!WebInspector.Event} event
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 var sourceFrame = this._sourcesView.viewForFile(uiSourceCode); 96 var sourceFrame = this._sourcesView.viewForFile(uiSourceCode);
97 var start = [0, 0]; 97 var start = [0, 0];
98 if (sourceFrame) { 98 if (sourceFrame) {
99 var selection = sourceFrame.selection(); 99 var selection = sourceFrame.selection();
100 start = formatterMapping.originalToFormatted(selection.startLine, select ion.startColumn); 100 start = formatterMapping.originalToFormatted(selection.startLine, select ion.startColumn);
101 } 101 }
102 uiSourceCode.setWorkingCopy(formattedContent); 102 uiSourceCode.setWorkingCopy(formattedContent);
103 this._sourcesView.showSourceLocation(uiSourceCode, start[0], start[1]); 103 this._sourcesView.showSourceLocation(uiSourceCode, start[0], start[1]);
104 } 104 }
105 } 105 }
106 }; 106 };
caseq 2016/11/09 18:25:30 please revert this file.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698