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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sass/SASSProcessor.js

Issue 2769843003: DevTools: split text_utils out of common module (Closed)
Patch Set: rebaseline Created 3 years, 9 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: third_party/WebKit/Source/devtools/front_end/sass/SASSProcessor.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sass/SASSProcessor.js b/third_party/WebKit/Source/devtools/front_end/sass/SASSProcessor.js
index dbba03ef7e18f1615037bb61b66dc367238df0b4..5ba45ea3656a0c8ae761966aa8aae027110fda9c 100644
--- a/third_party/WebKit/Source/devtools/front_end/sass/SASSProcessor.js
+++ b/third_party/WebKit/Source/devtools/front_end/sass/SASSProcessor.js
@@ -38,7 +38,7 @@ Sass.SASSProcessor = class {
/**
* @param {!Sass.ASTService} astService
* @param {!Sass.ASTSourceMap} map
- * @param {!Array<!Common.TextRange>} ranges
+ * @param {!Array<!TextUtils.TextRange>} ranges
* @param {!Array<string>} newTexts
* @return {!Promise<?SDK.SourceMap.EditResult>}
*/
@@ -47,7 +47,7 @@ Sass.SASSProcessor = class {
var cssURL = map.compiledURL();
var cssText = map.compiledModel().document.text;
for (var i = 0; i < ranges.length; ++i)
- cssText = new Common.Text(cssText.replaceRange(ranges[i], newTexts[i]));
+ cssText = new TextUtils.Text(cssText.replaceRange(ranges[i], newTexts[i]));
return astService.parseCSS(cssURL, cssText.value()).then(onCSSParsed);
/**
@@ -154,7 +154,7 @@ Sass.SASSProcessor = class {
var oldRange = rule.styleRange;
var newRule = nodeMapping.get(rule);
var newText = newRule.document.text.extract(newRule.styleRange);
- cssEdits.push(new Common.SourceEdit(newRule.document.url, oldRange, newText));
+ cssEdits.push(new TextUtils.SourceEdit(newRule.document.url, oldRange, newText));
}
/** @type {!Map<string, string>} */

Powered by Google App Engine
This is Rietveld 408576698