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

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

Issue 1641893002: DevTools: [SASS] introduce workspace/cssModel adapter for SASS processor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove settimeout from test Created 4 years, 11 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/SASSSupport.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sass/SASSSupport.js b/third_party/WebKit/Source/devtools/front_end/sass/SASSSupport.js
index c810de0d1211108b07deafdacfc3c9c332b5be6c..0ed1943c0873409af117bebf0f8b6b7a7fb46fd9 100644
--- a/third_party/WebKit/Source/devtools/front_end/sass/SASSSupport.js
+++ b/third_party/WebKit/Source/devtools/front_end/sass/SASSSupport.js
@@ -594,14 +594,18 @@ WebInspector.SASSSupport.PropertyChange = function(type, oldRule, newRule, oldPr
/**
* @constructor
* @param {string} url
+ * @param {!WebInspector.SASSSupport.AST} oldAST
+ * @param {!WebInspector.SASSSupport.AST} newAST
* @param {!Map<!WebInspector.SASSSupport.TextNode, !WebInspector.SASSSupport.TextNode>} mapping
* @param {!Array<!WebInspector.SASSSupport.PropertyChange>} changes
*/
-WebInspector.SASSSupport.ASTDiff = function(url, mapping, changes)
+WebInspector.SASSSupport.ASTDiff = function(url, oldAST, newAST, mapping, changes)
{
this.url = url;
this.mapping = mapping;
this.changes = changes;
+ this.oldAST = oldAST;
+ this.newAST = newAST;
}
/**
@@ -622,7 +626,7 @@ WebInspector.SASSSupport.diffModels = function(oldAST, newAST)
var newRule = newAST.rules[i];
computeRuleDiff(mapping, oldRule, newRule);
}
- return new WebInspector.SASSSupport.ASTDiff(oldAST.document.url, mapping, changes);
+ return new WebInspector.SASSSupport.ASTDiff(oldAST.document.url, oldAST, newAST, mapping, changes);
/**
* @param {!WebInspector.SASSSupport.PropertyChangeType} type

Powered by Google App Engine
This is Rietveld 408576698