Changeset 85204 in webkit


Ignore:
Timestamp:
Apr 28, 2011 10:20:47 AM (13 years ago)
Author:
podivilov@chromium.org
Message:

2011-04-28 Pavel Podivilov <podivilov@chromium.org>

Reviewed by Pavel Feldman.

Web Inspector: remove "Pretty print" source frame context menu item.
https://bugs.webkit.org/show_bug.cgi?id=59709

  • inspector/front-end/DebuggerPresentationModel.js: (WebInspector.DebuggerPresentationModel.prototype.setFormatSourceFiles):
  • inspector/front-end/ScriptsPanel.js: (WebInspector.ScriptsPanel.prototype._toggleFormatSourceFiles):
  • inspector/front-end/SourceFrame.js: (WebInspector.SourceFrame.prototype.populateTextAreaContextMenu):
Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r85191 r85204  
     12011-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
    1152011-04-28  Satish Sampath  <satish@chromium.org>
    216
  • trunk/Source/WebCore/inspector/front-end/DebuggerPresentationModel.js

    r83962 r85204  
    198198    },
    199199
    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;
    203206
    204207        for (var id in this._sourceFiles) {
     
    220223        if (WebInspector.debuggerModel.callFrames)
    221224            this._debuggerPaused();
    222     },
    223 
    224     formatSourceFilesToggled: function()
    225     {
    226         return this._formatSourceFiles;
    227225    },
    228226
  • trunk/Source/WebCore/inspector/front-end/ScriptsPanel.js

    r85191 r85204  
    10151015    {
    10161016        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);
    10191019    }
    10201020}
     
    11011101    },
    11021102
    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 
    11141103    suggestedFileName: function()
    11151104    {
  • trunk/Source/WebCore/inspector/front-end/SourceFrame.js

    r84629 r85204  
    652652    populateTextAreaContextMenu: function(contextMenu)
    653653    {
    654         if (this._delegate.debuggingSupported())
    655             contextMenu.appendCheckboxItem(WebInspector.UIString("Pretty print"), this._delegate.toggleFormatSourceFiles.bind(this._delegate), this._delegate.formatSourceFilesToggled());
    656654    },
    657655
     
    10131011    },
    10141012
    1015     toggleFormatSourceFiles: function()
    1016     {
    1017         // Should be implemented by subclasses.
    1018     },
    1019 
    1020     formatSourceFilesToggled: function()
    1021     {
    1022         // Should be implemented by subclasses.
    1023     },
    1024 
    10251013    suggestedFileName: function()
    10261014    {
Note: See TracChangeset for help on using the changeset viewer.