Changeset 29179 in webkit
- Timestamp:
- Jan 4, 2008, 2:43:44 PM (18 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r29178 r29179 1 2008-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 1 12 2008-01-04 Alexey Proskuryakov <ap@webkit.org> 2 13 -
trunk/WebCore/page/inspector/inspector.css
r29174 r29179 352 352 } 353 353 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 370 354 body.detached #attachToggle { 371 355 background-image: url(Images/sidebarAttachWidget.png); … … 387 371 overflow: hidden; 388 372 position: absolute; 389 bottom: -57px;373 bottom: 21px; 390 374 left: 0; 391 375 width: 100%; … … 398 382 font-size: 11px; 399 383 -webkit-transition: bottom 250ms ease-in-out; 400 }401 402 #status.visible {403 bottom: 21px;404 384 } 405 385 … … 473 453 top: 0; 474 454 left: 0; 475 bottom: 21px;455 bottom: 99px; 476 456 width: 100%; 477 457 padding: 2px 0; … … 481 461 font-size: 11px; 482 462 -webkit-transition: bottom 250ms ease-in-out; 483 }484 485 #list.status-visible {486 bottom: 99px;487 463 } 488 464 -
trunk/WebCore/page/inspector/inspector.html
r28039 r29179 62 62 <ol id="status"></ol> 63 63 <div id="statusbar"> 64 <button id=" statusToggle"></button><button id="attachToggle"></button>64 <button id="attachToggle"></button> 65 65 <span id="sidebarResizeWidget"></span> 66 66 </div> -
trunk/WebCore/page/inspector/inspector.js
r28708 r29179 148 148 }, 149 149 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 177 150 get showingSearchResults() 178 151 { … … 282 255 283 256 document.getElementById("attachToggle").addEventListener("click", this.toggleAttach.bind(this), true); 284 document.getElementById("statusToggle").addEventListener("click", this.toggleStatusArea.bind(this), true);285 257 286 258 document.getElementById("sidebarResizeWidget").addEventListener("mousedown", this.sidebarResizerDragStart, true); … … 402 374 403 375 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) { 405 377 var nextSelectedElement = this.statusOutline.children[0]; 406 378 while (nextSelectedElement && !nextSelectedElement.selectable) … … 408 380 } 409 381 } else if (this.statusOutline.selectedTreeElement) { 410 if (!this.s howingStatusArea || (!this.statusOutline.handleKeyEvent(event) && event.keyIdentifier === "Up" && !event.altKey)) {382 if (!this.statusOutline.handleKeyEvent(event) && event.keyIdentifier === "Up" && !event.altKey) { 411 383 var nextSelectedElement = this.fileOutline.children[0]; 412 384 var lastSelectable = null; … … 540 512 } 541 513 542 WebInspector.toggleStatusArea = function()543 {544 this.showingStatusArea = !this.showingStatusArea;545 }546 547 514 WebInspector.toolbarDragStart = function(event) 548 515 { … … 698 665 WebInspector.showConsole = function() 699 666 { 700 this.showingStatusArea = true;701 667 this.navigateToPanel(WebInspector.consolePanel); 702 668 } … … 704 670 WebInspector.showTimeline = function() 705 671 { 706 this.showingStatusArea = true;707 672 this.navigateToPanel(WebInspector.networkPanel); 708 673 } … … 766 731 case WebInspector.ConsoleMessage.MessageLevel.Warning: 767 732 ++this.consoleListItem.warnings; 768 this.showingStatusArea = true;769 733 break; 770 734 case WebInspector.ConsoleMessage.MessageLevel.Error: 771 735 ++this.consoleListItem.errors; 772 this.showingStatusArea = true;773 736 break; 774 737 }
Note:
See TracChangeset
for help on using the changeset viewer.