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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/CSSModel.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
Index: third_party/WebKit/Source/devtools/front_end/sdk/CSSModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/CSSModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/CSSModel.js
index 5ee2239f9615700c2a1fb7b2677414223d86c118..b3d197e86a16f3697b35c8539dd86535029faa17 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/CSSModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/CSSModel.js
@@ -1173,8 +1173,6 @@ WebInspector.CSSModel.ComputedStyleLoader.prototype = {
*/
WebInspector.CSSModel.fromTarget = function(target)
{
- if (!target.isPage())
- return null;
return /** @type {?WebInspector.CSSModel} */ (target.model(WebInspector.CSSModel));
}

Powered by Google App Engine
This is Rietveld 408576698