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

Unified Diff: Source/WebCore/inspector/front-end/JavaScriptSourceFrame.js

Issue 11377027: Merge 133750 - Web Inspector: [Regression] Editing formatted source should not be allowed. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 years, 1 month 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 | « no previous file | Source/WebCore/inspector/front-end/UISourceCodeFrame.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/inspector/front-end/JavaScriptSourceFrame.js
===================================================================
--- Source/WebCore/inspector/front-end/JavaScriptSourceFrame.js (revision 133760)
+++ Source/WebCore/inspector/front-end/JavaScriptSourceFrame.js (working copy)
@@ -107,6 +107,7 @@
_onFormattedChanged: function(event)
{
var content = /** @type {string} */ event.data.content;
+ this._textEditor.setReadOnly(this._uiSourceCode.formatted());
this._innerSetContent(content);
},
« no previous file with comments | « no previous file | Source/WebCore/inspector/front-end/UISourceCodeFrame.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698