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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js

Issue 2349343002: DevTools: introduce persistence/ module (Closed)
Patch Set: reupload Created 4 years, 3 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/sources/InplaceFormatterEditorAction.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js b/third_party/WebKit/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js
index edb31f35ba9b287b680087d3f10c9456c9ce290a..5314b381bd21a09825291ac138feba1084553f2e 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js
@@ -70,6 +70,8 @@ WebInspector.InplaceFormatterEditorAction.prototype = {
return false;
if (uiSourceCode.project().type() === WebInspector.projectTypes.FileSystem)
return true;
+ if (WebInspector.persistence.binding(uiSourceCode))
+ return true;
return uiSourceCode.contentType().isStyleSheet()
|| uiSourceCode.project().type() === WebInspector.projectTypes.Snippets;
},

Powered by Google App Engine
This is Rietveld 408576698