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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/bindings/SASSSourceMapping.js

Issue 2515763003: DevTools: use shorthand syntax in interface definitions. (Closed)
Patch Set: 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 /* 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 * @param {!SDK.CSSLocation} rawLocation 101 * @param {!SDK.CSSLocation} rawLocation
102 * @return {?Workspace.UILocation} 102 * @return {?Workspace.UILocation}
103 */ 103 */
104 rawLocationToUILocation(rawLocation) { 104 rawLocationToUILocation(rawLocation) {
105 var sourceMap = this._cssModel.sourceMapForHeader(rawLocation.header()); 105 var sourceMap = this._cssModel.sourceMapForHeader(rawLocation.header());
106 if (!sourceMap) 106 if (!sourceMap)
107 return null; 107 return null;
108 var entry = sourceMap.findEntry(rawLocation.lineNumber, rawLocation.columnNu mber); 108 var entry = sourceMap.findEntry(rawLocation.lineNumber, rawLocation.columnNu mber);
109 if (!entry || !entry.sourceURL) 109 if (!entry || !entry.sourceURL)
110 return null; 110 return null;
111 var uiSourceCode = Bindings.NetworkProject.uiSourceCodeForStyleURL(this._wor kspace, entry.sourceURL, rawLocation.header()); 111 var uiSourceCode =
112 Bindings.NetworkProject.uiSourceCodeForStyleURL(this._workspace, entry.s ourceURL, rawLocation.header());
112 if (!uiSourceCode) 113 if (!uiSourceCode)
113 return null; 114 return null;
114 return uiSourceCode.uiLocation(entry.sourceLineNumber || 0, entry.sourceColu mnNumber); 115 return uiSourceCode.uiLocation(entry.sourceLineNumber || 0, entry.sourceColu mnNumber);
115 } 116 }
116 117
117 dispose() { 118 dispose() {
118 Common.EventTarget.removeEventListeners(this._eventListeners); 119 Common.EventTarget.removeEventListeners(this._eventListeners);
119 } 120 }
120 }; 121 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698