Changeset 47049 in webkit


Ignore:
Timestamp:
Aug 11, 2009 12:37:38 PM (15 years ago)
Author:
eric@webkit.org
Message:

2009-08-11 Joseph Pecoraro <joepeck02@gmail.com>

Reviewed by Timothy Hatcher.

Inspector: Console Drawer is Toggling instead of Staying Open
https://bugs.webkit.org/show_bug.cgi?id=28115

  • inspector/front-end/Drawer.js: (WebInspector.Drawer.prototype.showView): ensures the drawer will be open and showing the provided view
  • inspector/front-end/inspector.js: (WebInspector.showConsole): usees the new showView to guarantee the Drawer will be open (WebInspector.showChanges): uses the new showView guarantee the Drawer will be open
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r47048 r47049  
     12009-08-11  Joseph Pecoraro  <joepeck02@gmail.com>
     2
     3        Reviewed by Timothy Hatcher.
     4
     5        Inspector: Console Drawer is Toggling instead of Staying Open
     6        https://bugs.webkit.org/show_bug.cgi?id=28115
     7
     8        * inspector/front-end/Drawer.js:
     9        (WebInspector.Drawer.prototype.showView): ensures the drawer will be open and showing the provided view
     10        * inspector/front-end/inspector.js:
     11        (WebInspector.showConsole): usees the new showView to guarantee the Drawer will be open
     12        (WebInspector.showChanges): uses the new showView guarantee the Drawer will be open
     13
    1142009-08-11  Nikolas Zimmermann  <nikolas.zimmermann@torchmobile.com>
    215
  • trunk/WebCore/inspector/front-end/Drawer.js

    r46732 r47049  
    6565    },
    6666
     67    showView: function(view)
     68    {
     69        if (!this.visible || this.visibleView !== view)
     70            this.visibleView = view;
     71    },
     72
    6773    show: function()
    6874    {
  • trunk/WebCore/inspector/front-end/inspector.js

    r47011 r47049  
    854854WebInspector.showConsole = function()
    855855{
    856     this.drawer.visibleView = this.console;
     856    this.drawer.showView(this.console);
    857857}
    858858
    859859WebInspector.showChanges = function()
    860860{
    861     this.drawer.visibleView = this.changes;
     861    this.drawer.showView(this.changes);
    862862}
    863863
Note: See TracChangeset for help on using the changeset viewer.