Changeset 29179 in webkit


Ignore:
Timestamp:
Jan 4, 2008, 2:43:44 PM (18 years ago)
Author:
timothy@apple.com
Message:

Reviewed by Adam Roben.

<rdar://problem/5671059> Always show the Timeline and Console buttons in the Inspector

  • page/inspector/inspector.css: Remove styles related to the toggle button and make the area always visible.
  • page/inspector/inspector.html: Remove the toggle button.
  • page/inspector/inspector.js: Remove code to toggle the status area.
Location:
trunk/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r29178 r29179  
     12008-01-04  Timothy Hatcher  <timothy@apple.com>
     2
     3        Reviewed by Adam Roben.
     4
     5        <rdar://problem/5671059> Always show the Timeline and Console buttons in the Inspector
     6
     7        * page/inspector/inspector.css: Remove styles related to the toggle button
     8          and make the area always visible.
     9        * page/inspector/inspector.html: Remove the toggle button.
     10        * page/inspector/inspector.js: Remove code to toggle the status area.
     11
    1122008-01-04  Alexey Proskuryakov  <ap@webkit.org>
    213
  • trunk/WebCore/page/inspector/inspector.css

    r29174 r29179  
    352352}
    353353
    354 #statusbar #statusToggle {
    355     background-image: url(Images/showStatusWidget.png);
    356 }
    357 
    358 #statusbar #statusToggle:active {
    359     background-image: url(Images/showStatusWidgetPressed.png);
    360 }
    361 
    362 #statusbar #statusToggle.hide {
    363     background-image: url(Images/hideStatusWidget.png);
    364 }
    365 
    366 #statusbar #statusToggle.hide:active {
    367     background-image: url(Images/hideStatusWidgetPressed.png);
    368 }
    369 
    370354body.detached #attachToggle {
    371355    background-image: url(Images/sidebarAttachWidget.png);
     
    387371    overflow: hidden;
    388372    position: absolute;
    389     bottom: -57px;
     373    bottom: 21px;
    390374    left: 0;
    391375    width: 100%;
     
    398382    font-size: 11px;
    399383    -webkit-transition: bottom 250ms ease-in-out;
    400 }
    401 
    402 #status.visible {
    403     bottom: 21px;
    404384}
    405385
     
    473453    top: 0;
    474454    left: 0;
    475     bottom: 21px;
     455    bottom: 99px;
    476456    width: 100%;
    477457    padding: 2px 0;
     
    481461    font-size: 11px;
    482462    -webkit-transition: bottom 250ms ease-in-out;
    483 }
    484 
    485 #list.status-visible {
    486     bottom: 99px;
    487463}
    488464
  • trunk/WebCore/page/inspector/inspector.html

    r28039 r29179  
    6262        <ol id="status"></ol>
    6363        <div id="statusbar">
    64             <button id="statusToggle"></button><button id="attachToggle"></button>
     64            <button id="attachToggle"></button>
    6565            <span id="sidebarResizeWidget"></span>
    6666        </div>
  • trunk/WebCore/page/inspector/inspector.js

    r28708 r29179  
    148148    },
    149149
    150     get showingStatusArea()
    151     {
    152         return this._showingStatusArea;
    153     },
    154 
    155     set showingStatusArea(x)
    156     {
    157         if (this._showingStatusArea === x)
    158             return;
    159 
    160         this._showingStatusArea = x;
    161 
    162         var list = document.getElementById("list");
    163         var status = document.getElementById("status");
    164         var statusButton = document.getElementById("statusToggle");
    165 
    166         if (x) {
    167             statusButton.addStyleClass("hide");
    168             list.addStyleClass("status-visible");
    169             status.addStyleClass("visible");
    170         } else {
    171             statusButton.removeStyleClass("hide");
    172             list.removeStyleClass("status-visible");
    173             status.removeStyleClass("visible");
    174         }
    175     },
    176 
    177150    get showingSearchResults()
    178151    {
     
    282255
    283256    document.getElementById("attachToggle").addEventListener("click", this.toggleAttach.bind(this), true);
    284     document.getElementById("statusToggle").addEventListener("click", this.toggleStatusArea.bind(this), true);
    285257
    286258    document.getElementById("sidebarResizeWidget").addEventListener("mousedown", this.sidebarResizerDragStart, true);
     
    402374
    403375    if (this.fileOutline.selectedTreeElement) {
    404         if (!this.fileOutline.handleKeyEvent(event) && event.keyIdentifier === "Down" && !event.altKey && this.showingStatusArea) {
     376        if (!this.fileOutline.handleKeyEvent(event) && event.keyIdentifier === "Down" && !event.altKey) {
    405377            var nextSelectedElement = this.statusOutline.children[0];
    406378            while (nextSelectedElement && !nextSelectedElement.selectable)
     
    408380        }
    409381    } else if (this.statusOutline.selectedTreeElement) {
    410         if (!this.showingStatusArea || (!this.statusOutline.handleKeyEvent(event) && event.keyIdentifier === "Up" && !event.altKey)) {
     382        if (!this.statusOutline.handleKeyEvent(event) && event.keyIdentifier === "Up" && !event.altKey) {
    411383            var nextSelectedElement = this.fileOutline.children[0];
    412384            var lastSelectable = null;
     
    540512}
    541513
    542 WebInspector.toggleStatusArea = function()
    543 {
    544     this.showingStatusArea = !this.showingStatusArea;
    545 }
    546 
    547514WebInspector.toolbarDragStart = function(event)
    548515{
     
    698665WebInspector.showConsole = function()
    699666{
    700     this.showingStatusArea = true;
    701667    this.navigateToPanel(WebInspector.consolePanel);
    702668}
     
    704670WebInspector.showTimeline = function()
    705671{
    706     this.showingStatusArea = true;
    707672    this.navigateToPanel(WebInspector.networkPanel);
    708673}
     
    766731        case WebInspector.ConsoleMessage.MessageLevel.Warning:
    767732            ++this.consoleListItem.warnings;
    768             this.showingStatusArea = true;
    769733            break;
    770734        case WebInspector.ConsoleMessage.MessageLevel.Error:
    771735            ++this.consoleListItem.errors;
    772             this.showingStatusArea = true;
    773736            break;
    774737    }
Note: See TracChangeset for help on using the changeset viewer.