Changeset 200600 in webkit


Ignore:
Timestamp:
May 9, 2016, 5:02:30 PM (9 years ago)
Author:
Matt Baker
Message:

Web Inspector: Remove Global Breakpoints folder
https://bugs.webkit.org/show_bug.cgi?id=157478
<rdar://problem/26176524>

Reviewed by Timothy Hatcher.

  • Localizations/en.lproj/localizedStrings.js:

Remove UI string.

  • UserInterface/Views/DebuggerSidebarPanel.js:

(WebInspector.DebuggerSidebarPanel):
(WebInspector.DebuggerSidebarPanel.prototype._breakpointTreeOutlineContextMenuTreeElement):
(WebInspector.DebuggerSidebarPanel.prototype._treeSelectionDidChange):
Remove references to folder tree element.

(WebInspector.DebuggerSidebarPanel.prototype._compareTopLevelTreeElements.isSpecialBreakpoint):
(WebInspector.DebuggerSidebarPanel.prototype._compareTopLevelTreeElements):
Top level comparison should check for "special" breakpoints.

Location:
trunk/Source/WebInspectorUI
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r200594 r200600  
     12016-05-09  Matt Baker  <mattbaker@apple.com>
     2
     3        Web Inspector: Remove Global Breakpoints folder
     4        https://bugs.webkit.org/show_bug.cgi?id=157478
     5        <rdar://problem/26176524>
     6
     7        Reviewed by Timothy Hatcher.
     8
     9        * Localizations/en.lproj/localizedStrings.js:
     10        Remove UI string.
     11
     12        * UserInterface/Views/DebuggerSidebarPanel.js:
     13        (WebInspector.DebuggerSidebarPanel):
     14        (WebInspector.DebuggerSidebarPanel.prototype._breakpointTreeOutlineContextMenuTreeElement):
     15        (WebInspector.DebuggerSidebarPanel.prototype._treeSelectionDidChange):
     16        Remove references to folder tree element.
     17
     18        (WebInspector.DebuggerSidebarPanel.prototype._compareTopLevelTreeElements.isSpecialBreakpoint):
     19        (WebInspector.DebuggerSidebarPanel.prototype._compareTopLevelTreeElements):
     20        Top level comparison should check for "special" breakpoints.
     21
    1222016-05-09  Matt Baker  <mattbaker@apple.com>
    223
  • trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js

    r200573 r200600  
    363363localizedStrings["Garbage Collection"] = "Garbage Collection";
    364364localizedStrings["Getter"] = "Getter";
    365 localizedStrings["Global Breakpoints"] = "Global Breakpoints";
    366365localizedStrings["Global Code"] = "Global Code";
    367366localizedStrings["Global Lexical Environment"] = "Global Lexical Environment";
  • trunk/Source/WebInspectorUI/UserInterface/Views/DebuggerSidebarPanel.js

    r200574 r200600  
    100100        this.element.classList.add(WebInspector.DebuggerSidebarPanel.OffsetSectionsStyleClassName);
    101101
    102         this._globalBreakpointsFolderTreeElement = new WebInspector.FolderTreeElement(WebInspector.UIString("Global Breakpoints"), null, WebInspector.DebuggerSidebarPanel.GlobalIconStyleClassName);
    103102        this._allExceptionsBreakpointTreeElement = new WebInspector.BreakpointTreeElement(WebInspector.debuggerManager.allExceptionsBreakpoint, WebInspector.DebuggerSidebarPanel.ExceptionIconStyleClassName, WebInspector.UIString("All Exceptions"));
    104103        this._allUncaughtExceptionsBreakpointTreeElement = new WebInspector.BreakpointTreeElement(WebInspector.debuggerManager.allUncaughtExceptionsBreakpoint, WebInspector.DebuggerSidebarPanel.ExceptionIconStyleClassName, WebInspector.UIString("All Uncaught Exceptions"));
    105         this.suppressFilteringOnTreeElements([this._globalBreakpointsFolderTreeElement, this._allExceptionsBreakpointTreeElement, this._allUncaughtExceptionsBreakpointTreeElement]);
     104        this.suppressFilteringOnTreeElements([this._allExceptionsBreakpointTreeElement, this._allUncaughtExceptionsBreakpointTreeElement]);
    106105
    107106        this.filterBar.placeholder = WebInspector.UIString("Filter List");
     
    138137        this._breakpointsContentTreeOutline.oncontextmenu = this._breakpointTreeOutlineContextMenuTreeElement.bind(this);
    139138
    140         this._breakpointsContentTreeOutline.appendChild(this._globalBreakpointsFolderTreeElement);
    141         this._globalBreakpointsFolderTreeElement.appendChild(this._allExceptionsBreakpointTreeElement);
    142         this._globalBreakpointsFolderTreeElement.appendChild(this._allUncaughtExceptionsBreakpointTreeElement);
    143         this._globalBreakpointsFolderTreeElement.expand();
     139        this._breakpointsContentTreeOutline.appendChild(this._allExceptionsBreakpointTreeElement);
     140        this._breakpointsContentTreeOutline.appendChild(this._allUncaughtExceptionsBreakpointTreeElement);
    144141
    145142        this._scriptsContentTreeOutline = this.createContentTreeOutline(true);
     
    659656    _breakpointTreeOutlineContextMenuTreeElement(event, treeElement)
    660657    {
    661         console.assert(treeElement instanceof WebInspector.ResourceTreeElement || treeElement instanceof WebInspector.ScriptTreeElement || treeElement.constructor === WebInspector.FolderTreeElement);
     658        console.assert(treeElement instanceof WebInspector.ResourceTreeElement || treeElement instanceof WebInspector.ScriptTreeElement);
    662659        if (!(treeElement instanceof WebInspector.ResourceTreeElement) && !(treeElement instanceof WebInspector.ScriptTreeElement))
    663660            return;
     
    715712        }
    716713
    717         if (!(treeElement instanceof WebInspector.BreakpointTreeElement) || treeElement.parent.constructor === WebInspector.FolderTreeElement)
     714        if (!(treeElement instanceof WebInspector.BreakpointTreeElement))
    718715            return;
    719716
     
    736733    _compareTopLevelTreeElements(a, b)
    737734    {
    738         if (a === this._globalBreakpointsFolderTreeElement)
     735        function isSpecialBreakpoint(treeElement)
     736        {
     737            return treeElement.representedObject === WebInspector.debuggerManager.allExceptionsBreakpoint || treeElement.representedObject === WebInspector.debuggerManager.allUncaughtExceptionsBreakpoint;
     738        }
     739
     740        if (isSpecialBreakpoint(a))
    739741            return -1;
    740         if (b === this._globalBreakpointsFolderTreeElement)
     742        if (isSpecialBreakpoint(b))
    741743            return 1;
    742744
Note: See TracChangeset for help on using the changeset viewer.