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

Unified Diff: Source/devtools/front_end/bindings/SASSSourceMapping.js

Issue 471433004: DevTools: Split out the "workspace" and "bindings" modules from "sdk" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove marker interfaces and WI.SourceMapping Created 6 years, 4 months 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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/bindings/SASSSourceMapping.js
diff --git a/Source/devtools/front_end/sdk/SASSSourceMapping.js b/Source/devtools/front_end/bindings/SASSSourceMapping.js
similarity index 98%
rename from Source/devtools/front_end/sdk/SASSSourceMapping.js
rename to Source/devtools/front_end/bindings/SASSSourceMapping.js
index 61a5e567351597e71a0760471fa2f6ea9a8b9ab9..592d3e07b4041e0c718dca4fe96d7d86af369024 100644
--- a/Source/devtools/front_end/sdk/SASSSourceMapping.js
+++ b/Source/devtools/front_end/bindings/SASSSourceMapping.js
@@ -30,7 +30,7 @@
/**
* @constructor
- * @implements {WebInspector.SourceMapping}
+ * @implements {WebInspector.CSSSourceMapping}
* @param {!WebInspector.CSSStyleModel} cssModel
* @param {!WebInspector.Workspace} workspace
* @param {!WebInspector.NetworkWorkspaceBinding} networkWorkspaceBinding
@@ -533,17 +533,16 @@ WebInspector.SASSSourceMapping.prototype = {
},
/**
- * @param {!WebInspector.RawLocation} rawLocation
+ * @param {!WebInspector.CSSLocation} rawLocation
* @return {?WebInspector.UILocation}
*/
rawLocationToUILocation: function(rawLocation)
{
- var location = /** @type WebInspector.CSSLocation */ (rawLocation);
var entry;
- var sourceMap = this._sourceMapByStyleSheetURL[location.url];
+ var sourceMap = this._sourceMapByStyleSheetURL[rawLocation.url];
if (!sourceMap)
return null;
- entry = sourceMap.findEntry(location.lineNumber, location.columnNumber);
+ entry = sourceMap.findEntry(rawLocation.lineNumber, rawLocation.columnNumber);
if (!entry || entry.length === 2)
return null;
var uiSourceCode = this._workspace.uiSourceCodeForURL(entry[2]);
@@ -556,7 +555,7 @@ WebInspector.SASSSourceMapping.prototype = {
* @param {!WebInspector.UISourceCode} uiSourceCode
* @param {number} lineNumber
* @param {number} columnNumber
- * @return {!WebInspector.RawLocation}
+ * @return {!WebInspector.CSSLocation}
*/
uiLocationToRawLocation: function(uiSourceCode, lineNumber, columnNumber)
{
« no previous file with comments | « Source/devtools/front_end/bindings/ResourceUtils.js ('k') | Source/devtools/front_end/bindings/ScriptSnippetModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698