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

Unified Diff: third_party/WebKit/Source/devtools/front_end/timeline_model/LayerTreeModel.js

Issue 2137773002: [DevTools] Replace the target type with capabilities (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/timeline_model/LayerTreeModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline_model/LayerTreeModel.js b/third_party/WebKit/Source/devtools/front_end/timeline_model/LayerTreeModel.js
index 001735f2215d474ec4a38a63c6ad48fd6eb3e54e..f78e14db24ff0eab05f59f99fdfde87cfd69d6ce 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline_model/LayerTreeModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline_model/LayerTreeModel.js
@@ -1299,7 +1299,7 @@ WebInspector.LayerTreeDispatcher.prototype = {
*/
WebInspector.LayerTreeModel.fromTarget = function(target)
{
- if (!target.isPage())
+ if (!target.hasBrowserCapability())
return null;
var model = /** @type {?WebInspector.LayerTreeModel} */ (target.model(WebInspector.LayerTreeModel));
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698