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

Unified Diff: Source/devtools/front_end/StylesSidebarPane.js

Issue 14320027: DevTools: Track CSSStyleSheetHeaders in the front-end real time (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for trybots (with [Slow]) Created 7 years, 8 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
« no previous file with comments | « Source/devtools/front_end/SASSSourceMapping.js ('k') | Source/devtools/front_end/StylesSourceMapping.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/StylesSidebarPane.js
diff --git a/Source/devtools/front_end/StylesSidebarPane.js b/Source/devtools/front_end/StylesSidebarPane.js
index 1605c60bda937a6be56f76cf4e26c8e10f811412..eec4d263f17b1a7a44222c23887ec4f448ab6bb3 100644
--- a/Source/devtools/front_end/StylesSidebarPane.js
+++ b/Source/devtools/front_end/StylesSidebarPane.js
@@ -1206,17 +1206,11 @@ WebInspector.StylePropertiesSection.prototype = {
return document.createTextNode(WebInspector.UIString("user stylesheet"));
if (this.rule.isViaInspector) {
var element = document.createElement("span");
- /**
- * @param {?WebInspector.Resource} resource
- */
- function callback(resource)
- {
- if (resource)
- element.appendChild(linkifyUncopyable(resource.url, this.rule.sourceLine));
- else
- element.textContent = WebInspector.UIString("via inspector");
- }
- WebInspector.cssModel.getViaInspectorResourceForRule(this.rule, callback.bind(this));
+ var resource = WebInspector.cssModel.viaInspectorResourceForRule(this.rule);
+ if (resource)
+ element.appendChild(linkifyUncopyable(resource.url, this.rule.sourceLine));
+ else
+ element.textContent = WebInspector.UIString("via inspector");
return element;
}
},
« no previous file with comments | « Source/devtools/front_end/SASSSourceMapping.js ('k') | Source/devtools/front_end/StylesSourceMapping.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698