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

Side by Side Diff: Source/WebCore/inspector/front-end/UISourceCodeFrame.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 unified diff | Download patch
« no previous file with comments | « Source/WebCore/inspector/front-end/JavaScriptSourceFrame.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 10 *
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 return; 76 return;
77 } 77 }
78 }, 78 },
79 79
80 /** 80 /**
81 * @param {WebInspector.Event} event 81 * @param {WebInspector.Event} event
82 */ 82 */
83 _onFormattedChanged: function(event) 83 _onFormattedChanged: function(event)
84 { 84 {
85 var content = /** @type {string} */ event.data.content; 85 var content = /** @type {string} */ event.data.content;
86 this._textEditor.setReadOnly(this._uiSourceCode.formatted());
86 this._innerSetContent(content); 87 this._innerSetContent(content);
87 }, 88 },
88 89
89 /** 90 /**
90 * @param {WebInspector.Event} event 91 * @param {WebInspector.Event} event
91 */ 92 */
92 _onWorkingCopyChanged: function(event) 93 _onWorkingCopyChanged: function(event)
93 { 94 {
94 this._innerSetContent(this._uiSourceCode.workingCopy()); 95 this._innerSetContent(this._uiSourceCode.workingCopy());
95 }, 96 },
(...skipping 16 matching lines...) Expand all
112 113
113 populateTextAreaContextMenu: function(contextMenu, lineNumber) 114 populateTextAreaContextMenu: function(contextMenu, lineNumber)
114 { 115 {
115 WebInspector.SourceFrame.prototype.populateTextAreaContextMenu.call(this , contextMenu, lineNumber); 116 WebInspector.SourceFrame.prototype.populateTextAreaContextMenu.call(this , contextMenu, lineNumber);
116 contextMenu.appendApplicableItems(this._uiSourceCode); 117 contextMenu.appendApplicableItems(this._uiSourceCode);
117 contextMenu.appendSeparator(); 118 contextMenu.appendSeparator();
118 }, 119 },
119 120
120 __proto__: WebInspector.SourceFrame.prototype 121 __proto__: WebInspector.SourceFrame.prototype
121 } 122 }
OLDNEW
« no previous file with comments | « Source/WebCore/inspector/front-end/JavaScriptSourceFrame.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698