Changeset 85204 in webkit
- Timestamp:
- Apr 28, 2011 10:20:47 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r85191 r85204 1 2011-04-28 Pavel Podivilov <podivilov@chromium.org> 2 3 Reviewed by Pavel Feldman. 4 5 Web Inspector: remove "Pretty print" source frame context menu item. 6 https://bugs.webkit.org/show_bug.cgi?id=59709 7 8 * inspector/front-end/DebuggerPresentationModel.js: 9 (WebInspector.DebuggerPresentationModel.prototype.setFormatSourceFiles): 10 * inspector/front-end/ScriptsPanel.js: 11 (WebInspector.ScriptsPanel.prototype._toggleFormatSourceFiles): 12 * inspector/front-end/SourceFrame.js: 13 (WebInspector.SourceFrame.prototype.populateTextAreaContextMenu): 14 1 15 2011-04-28 Satish Sampath <satish@chromium.org> 2 16 -
trunk/Source/WebCore/inspector/front-end/DebuggerPresentationModel.js
r83962 r85204 198 198 }, 199 199 200 toggleFormatSourceFiles: function() 201 { 202 this._formatSourceFiles = !this._formatSourceFiles; 200 setFormatSourceFiles: function(formatSourceFiles) 201 { 202 if (this._formatSourceFiles === formatSourceFiles) 203 return; 204 205 this._formatSourceFiles = formatSourceFiles; 203 206 204 207 for (var id in this._sourceFiles) { … … 220 223 if (WebInspector.debuggerModel.callFrames) 221 224 this._debuggerPaused(); 222 },223 224 formatSourceFilesToggled: function()225 {226 return this._formatSourceFiles;227 225 }, 228 226 -
trunk/Source/WebCore/inspector/front-end/ScriptsPanel.js
r85191 r85204 1015 1015 { 1016 1016 WebInspector.panels.scripts.reset(); 1017 this._ presentationModel.toggleFormatSourceFiles();1018 this._ toggleFormatSourceFilesButton.toggled = this._presentationModel.formatSourceFilesToggled();1017 this._toggleFormatSourceFilesButton.toggled = !this._toggleFormatSourceFilesButton.toggled; 1018 this._presentationModel.setFormatSourceFiles(this._toggleFormatSourceFilesButton.toggled); 1019 1019 } 1020 1020 } … … 1101 1101 }, 1102 1102 1103 toggleFormatSourceFiles: function()1104 {1105 WebInspector.panels.scripts.reset();1106 this._model.toggleFormatSourceFiles();1107 },1108 1109 formatSourceFilesToggled: function()1110 {1111 return this._model.formatSourceFilesToggled();1112 },1113 1114 1103 suggestedFileName: function() 1115 1104 { -
trunk/Source/WebCore/inspector/front-end/SourceFrame.js
r84629 r85204 652 652 populateTextAreaContextMenu: function(contextMenu) 653 653 { 654 if (this._delegate.debuggingSupported())655 contextMenu.appendCheckboxItem(WebInspector.UIString("Pretty print"), this._delegate.toggleFormatSourceFiles.bind(this._delegate), this._delegate.formatSourceFilesToggled());656 654 }, 657 655 … … 1013 1011 }, 1014 1012 1015 toggleFormatSourceFiles: function()1016 {1017 // Should be implemented by subclasses.1018 },1019 1020 formatSourceFilesToggled: function()1021 {1022 // Should be implemented by subclasses.1023 },1024 1025 1013 suggestedFileName: function() 1026 1014 {
Note: See TracChangeset
for help on using the changeset viewer.