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

Unified Diff: third_party/WebKit/Source/devtools/front_end/source_frame/SourceFrame.js

Issue 2567633003: [DevTools] Make SourceFrame.setEditable work. (Closed)
Patch Set: Created 4 years 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/source_frame/SourceFrame.js
diff --git a/third_party/WebKit/Source/devtools/front_end/source_frame/SourceFrame.js b/third_party/WebKit/Source/devtools/front_end/source_frame/SourceFrame.js
index f6b9c0171818c4c59b28280b51a999caf27715ba..32c1e7ab8ca29798670a172c4efacad5467d21b6 100644
--- a/third_party/WebKit/Source/devtools/front_end/source_frame/SourceFrame.js
+++ b/third_party/WebKit/Source/devtools/front_end/source_frame/SourceFrame.js
@@ -67,14 +67,16 @@ SourceFrame.SourceFrame = class extends UI.SimpleView {
*/
this._searchableView = null;
this._editable = false;
+ this._textEditor.setReadOnly(true);
}
/**
* @param {boolean} editable
+ * @protected
*/
setEditable(editable) {
this._editable = editable;
- this._textEditor.setReadOnly(editable);
+ this._textEditor.setReadOnly(!editable);
}
/**

Powered by Google App Engine
This is Rietveld 408576698