Changeset 85191 in webkit
- Timestamp:
- Apr 28, 2011 9:18:49 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r85190 r85191 27 27 * platform/gtk/ScrollViewGtk.cpp: 28 28 (WebCore::ScrollView::createScrollbar): 29 30 2011-04-28 Pavel Feldman <pfeldman@google.com> 31 32 Reviewed by Yury Semikhatsky. 33 34 Web Inspector: add status bar button for pretty print. 35 https://bugs.webkit.org/show_bug.cgi?id=59467 36 37 * WebCore.gypi: 38 * inspector/front-end/Images/prettyPrintButtonGlyph.png: Added. 39 * inspector/front-end/ScriptsPanel.js: 40 (WebInspector.ScriptsPanel): 41 (WebInspector.ScriptsPanel.prototype.get statusBarItems): 42 (WebInspector.ScriptsPanel.prototype._toggleFormatSourceFiles): 43 * inspector/front-end/WebKit.qrc: 44 * inspector/front-end/inspector.css: 45 (.scripts-toggle-pretty-print-status-bar-item .glyph): 46 (.scripts-toggle-pretty-print-status-bar-item.toggled .glyph): 29 47 30 48 2011-04-28 Pavel Feldman <pfeldman@google.com> -
trunk/Source/WebCore/WebCore.gypi
r85180 r85191 6362 6362 'inspector/front-end/Images/popoverArrows.png', 6363 6363 'inspector/front-end/Images/popoverBackground.png', 6364 'inspector/front-end/Images/prettyPrintButtonGlyph.png', 6364 6365 'inspector/front-end/Images/profileGroupIcon.png', 6365 6366 'inspector/front-end/Images/profileIcon.png', -
trunk/Source/WebCore/inspector/front-end/ScriptsPanel.js
r85179 r85191 172 172 this._pauseOnExceptionButton.addEventListener("click", this._togglePauseOnExceptions.bind(this), false); 173 173 174 this._toggleFormatSourceFilesButton = new WebInspector.StatusBarButton(WebInspector.UIString("Pretty print"), "scripts-toggle-pretty-print-status-bar-item"); 175 this._toggleFormatSourceFilesButton.toggled = false; 176 this._toggleFormatSourceFilesButton.addEventListener("click", this._toggleFormatSourceFiles.bind(this), false); 177 174 178 this._registerShortcuts(); 175 179 … … 216 220 get statusBarItems() 217 221 { 218 return [this.enableToggleButton.element, this._pauseOnExceptionButton.element ];222 return [this.enableToggleButton.element, this._pauseOnExceptionButton.element, this._toggleFormatSourceFilesButton.element]; 219 223 }, 220 224 … … 1007 1011 this._searchView.jumpToPreviousSearchResult(); 1008 1012 }, 1013 1014 _toggleFormatSourceFiles: function() 1015 { 1016 WebInspector.panels.scripts.reset(); 1017 this._presentationModel.toggleFormatSourceFiles(); 1018 this._toggleFormatSourceFilesButton.toggled = this._presentationModel.formatSourceFilesToggled(); 1019 } 1009 1020 } 1010 1021 -
trunk/Source/WebCore/inspector/front-end/WebKit.qrc
r84780 r85191 202 202 <file>Images/popoverArrows.png</file> 203 203 <file>Images/popoverBackground.png</file> 204 <file>Images/prettyPrintButtonGlyph.png</file> 204 205 <file>Images/profileGroupIcon.png</file> 205 206 <file>Images/profileIcon.png</file> -
trunk/Source/WebCore/inspector/front-end/inspector.css
r84910 r85191 2558 2558 } 2559 2559 2560 .scripts-toggle-pretty-print-status-bar-item .glyph { 2561 -webkit-mask-image: url(Images/prettyPrintButtonGlyph.png); 2562 } 2563 2564 .scripts-toggle-pretty-print-status-bar-item.toggled .glyph { 2565 background-color: rgb(66, 129, 235); 2566 } 2567 2560 2568 #scripts-status-bar { 2561 2569 position: absolute;
Note: See TracChangeset
for help on using the changeset viewer.