Changeset 117442 in webkit


Ignore:
Timestamp:
May 17, 2012 6:32:09 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: DOM Breakpoints Pane should allow to Remove All the breakpoints
https://bugs.webkit.org/show_bug.cgi?id=86716

Patch by Vivek Galatage <vivekgalatage@gmail.com> on 2012-05-17
Reviewed by Yury Semikhatsky.

Added a new context menu to provide Remove All DOM breakpoint option.

UI Feature. Tests not required.

  • English.lproj/localizedStrings.js:
  • inspector/front-end/DOMBreakpointsSidebarPane.js:

(WebInspector.DOMBreakpointsSidebarPane.prototype._removeAllBreakpoints):
(WebInspector.DOMBreakpointsSidebarPane.prototype._contextMenu):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r117437 r117442  
     12012-05-17  Vivek Galatage  <vivekgalatage@gmail.com>
     2
     3        Web Inspector: DOM Breakpoints Pane should allow to Remove All the breakpoints
     4        https://bugs.webkit.org/show_bug.cgi?id=86716
     5
     6        Reviewed by Yury Semikhatsky.
     7
     8        Added a new context menu to provide Remove All DOM breakpoint option.
     9
     10        UI Feature. Tests not required.
     11
     12        * English.lproj/localizedStrings.js:
     13        * inspector/front-end/DOMBreakpointsSidebarPane.js:
     14        (WebInspector.DOMBreakpointsSidebarPane.prototype._removeAllBreakpoints):
     15        (WebInspector.DOMBreakpointsSidebarPane.prototype._contextMenu):
     16
    1172012-05-17  Ilya Tikhonovsky  <loislo@chromium.org>
    218
  • trunk/Source/WebCore/inspector/front-end/DOMBreakpointsSidebarPane.js

    r105707 r117442  
    212212    },
    213213
     214    _removeAllBreakpoints: function()
     215    {
     216        for (var id in this._breakpointElements) {
     217            var element = this._breakpointElements[id];
     218            this._removeBreakpoint(element._node, element._type);
     219        }
     220        this._saveBreakpoints();
     221    },
     222
    214223    _removeBreakpoint: function(node, type)
    215224    {
     
    234243        }
    235244        contextMenu.appendItem(WebInspector.UIString("Remove Breakpoint"), removeBreakpoint.bind(this));
     245        contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMenuTitles() ? "Remove all DOM breakpoints" : "Remove All DOM Breakpoints"), this._removeAllBreakpoints.bind(this));
    236246        contextMenu.show(event);
    237247    },
Note: See TracChangeset for help on using the changeset viewer.