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

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

Issue 2408203007: DevTools: teach network UISourceCodes to return metadata (Closed)
Patch Set: address comments Created 4 years, 2 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/ASTSourceMap.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sass/ASTSourceMap.js b/third_party/WebKit/Source/devtools/front_end/sass/ASTSourceMap.js
index 1793906970da15867359dcac81ea5bb5554f2c1d..821f935969cb00a98fcfb5df06e4ffbe1355a12b 100644
--- a/third_party/WebKit/Source/devtools/front_end/sass/ASTSourceMap.js
+++ b/third_party/WebKit/Source/devtools/front_end/sass/ASTSourceMap.js
@@ -66,6 +66,17 @@ WebInspector.ASTSourceMap.prototype = {
/**
* @override
+ * @param {string} sourceURL
+ * @return {?string}
+ */
+ embeddedContentByURL: function(sourceURL)
+ {
+ var model = this.modelForURL(sourceURL);
+ return model ? model.document.text.value() : "";
+ },
+
+ /**
+ * @override
* @param {number} lineNumber
* @param {number=} columnNumber
* @return {?WebInspector.SourceMapEntry}

Powered by Google App Engine
This is Rietveld 408576698