Changeset 210911 in webkit


Ignore:
Timestamp:
Jan 18, 2017 9:09:49 PM (7 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: split console should be allowed for Network and Timeline tabs when Inspector is not docked
https://bugs.webkit.org/show_bug.cgi?id=167075

Patch by Devin Rousso <Devin Rousso> on 2017-01-18
Reviewed by Timothy Hatcher.

  • UserInterface/Base/Main.js:

(WebInspector.dockedConfigurationSupportsSplitContentBrowser):
Helper function to determine if the current docked state supports having the content view
and split console at the same time. Currently set to be true if not docked bottom.

  • UserInterface/Views/ClusterContentView.js:

(WebInspector.ClusterContentView.prototype.get supportsSplitContentBrowser):

  • UserInterface/Views/ContentView.js:

(WebInspector.ContentView.prototype.get supportsSplitContentBrowser):

  • UserInterface/Views/NetworkTabContentView.js:

(WebInspector.NetworkTabContentView.prototype.get supportsSplitContentBrowser):

  • UserInterface/Views/TimelineTabContentView.js:

(WebInspector.TimelineTabContentView.prototype.get supportsSplitContentBrowser): Deleted.
Update supportsSplitContentBrowser functions to only be true/false based on the return value
of WebInspector.dockedConfigurationSupportsSplitContentBrowser.

Location:
trunk/Source/WebInspectorUI
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r210910 r210911  
     12017-01-18  Devin Rousso  <dcrousso+webkit@gmail.com>
     2
     3        Web Inspector: split console should be allowed for Network and Timeline tabs when Inspector is not docked
     4        https://bugs.webkit.org/show_bug.cgi?id=167075
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        * UserInterface/Base/Main.js:
     9        (WebInspector.dockedConfigurationSupportsSplitContentBrowser):
     10        Helper function to determine if the current docked state supports having the content view
     11        and split console at the same time.  Currently set to be true if not docked bottom.
     12
     13        * UserInterface/Views/ClusterContentView.js:
     14        (WebInspector.ClusterContentView.prototype.get supportsSplitContentBrowser):
     15        * UserInterface/Views/ContentView.js:
     16        (WebInspector.ContentView.prototype.get supportsSplitContentBrowser):
     17        * UserInterface/Views/NetworkTabContentView.js:
     18        (WebInspector.NetworkTabContentView.prototype.get supportsSplitContentBrowser):
     19        * UserInterface/Views/TimelineTabContentView.js:
     20        (WebInspector.TimelineTabContentView.prototype.get supportsSplitContentBrowser): Deleted.
     21        Update supportsSplitContentBrowser functions to only be true/false based on the return value
     22        of WebInspector.dockedConfigurationSupportsSplitContentBrowser.
     23
    1242017-01-18  Joseph Pecoraro  <pecoraro@apple.com>
    225
  • trunk/Source/WebInspectorUI/UserInterface/Base/Main.js

    r210788 r210911  
    889889};
    890890
     891WebInspector.dockedConfigurationSupportsSplitContentBrowser = function()
     892{
     893    return this._dockConfiguration !== WebInspector.DockConfiguration.Bottom;
     894};
     895
    891896WebInspector.doesCurrentTabSupportSplitContentBrowser = function()
    892897{
  • trunk/Source/WebInspectorUI/UserInterface/Views/ClusterContentView.js

    r208091 r210911  
    5858        if (this._contentViewContainer.currentContentView)
    5959            return this._contentViewContainer.currentContentView.supportsSplitContentBrowser;
    60         return true;
     60
     61        return super.supportsSplitContentBrowser;
    6162    }
    6263
  • trunk/Source/WebInspectorUI/UserInterface/Views/ContentView.js

    r209882 r210911  
    311311    {
    312312        // Implemented by subclasses.
    313         return true;
     313        return WebInspector.dockedConfigurationSupportsSplitContentBrowser();
    314314    }
    315315
  • trunk/Source/WebInspectorUI/UserInterface/Views/NetworkTabContentView.js

    r208091 r210911  
    6262    get supportsSplitContentBrowser()
    6363    {
     64        // Since the Network tab has a real sidebar, showing the split console would cause items in
     65        // the sidebar to be aligned with an item in the datagrid that isn't shown.
    6466        return false;
    6567    }
  • trunk/Source/WebInspectorUI/UserInterface/Views/TimelineTabContentView.js

    r208091 r210911  
    310310    }
    311311
    312     get supportsSplitContentBrowser()
    313     {
    314         return false;
    315     }
    316 
    317312    // Protected
    318313
Note: See TracChangeset for help on using the changeset viewer.