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

Unified Diff: third_party/WebKit/Source/devtools/front_end/elements/Spectrum.js

Issue 2137773002: [DevTools] Replace the target type with capabilities (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing the code review comments Created 4 years, 5 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/elements/Spectrum.js
diff --git a/third_party/WebKit/Source/devtools/front_end/elements/Spectrum.js b/third_party/WebKit/Source/devtools/front_end/elements/Spectrum.js
index a91e6bebfdd35680c0e663ab67ed627c9ec33c60..65cc06420a4ad21c4b02994887cc7702ed3333d1 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/Spectrum.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/Spectrum.js
@@ -929,7 +929,7 @@ WebInspector.Spectrum.PaletteGenerator = function(callback)
/** @type {!Map.<string, number>} */
this._frequencyMap = new Map();
var stylesheetPromises = [];
- for (var target of WebInspector.targetManager.targets(WebInspector.Target.Type.Page)) {
+ for (var target of WebInspector.targetManager.targets(WebInspector.Target.Capability.Browser)) {
var cssModel = WebInspector.CSSModel.fromTarget(target);
for (var stylesheet of cssModel.allStyleSheets())
stylesheetPromises.push(new Promise(this._processStylesheet.bind(this, stylesheet)));

Powered by Google App Engine
This is Rietveld 408576698