RESOLVED FIXED 28174
Profile and Database views' status bar buttons are blank
https://bugs.webkit.org/show_bug.cgi?id=28174
Summary Profile and Database views' status bar buttons are blank
Mikhail Naganov
Reported 2009-08-11 05:49:34 PDT
This bug was introduced in r46979. Profile view buttons (those shown below a profile view) wasn't updated to use createStatusBarButton method. As a result, they are blank. Trying to fix it naively, I've found that as profile view doesn't have a reference to a Profiles panel, it would need to access the createStatusBarButton function through WebInspector.panels.profiler, which isn't good. So I've decided to encapsulate glyph-based buttons into a new class. As an additional benifit, this allowed to encapsulate toggling and hiding functionality.
Attachments
Proposed change (23.47 KB, patch)
2009-08-11 05:59 PDT, Mikhail Naganov
timothy: review-
Updated patch---comments addressed (27.63 KB, patch)
2009-08-12 02:00 PDT, Mikhail Naganov
no flags
Storage view also converted to use StatusBarButton, fixed Reload button css to support glyph. (33.78 KB, patch)
2009-08-13 02:13 PDT, Mikhail Naganov
no flags
noticed that I've accidentally made "Delete" button in Cookies view hidden---fixed (33.78 KB, patch)
2009-08-13 02:21 PDT, Mikhail Naganov
timothy: review+
timothy: commit-queue+
Mikhail Naganov
Comment 1 2009-08-11 05:59:18 PDT
Created attachment 34552 [details] Proposed change
Timothy Hatcher
Comment 2 2009-08-11 09:33:10 PDT
Comment on attachment 34552 [details] Proposed change I like the new class, but it should go into it's own file and not part of Panel.js. Also I think toggled would be a better name for the getter/setter than toggledOn.
Mikhail Naganov
Comment 3 2009-08-12 02:00:21 PDT
Created attachment 34644 [details] Updated patch---comments addressed
Joseph Pecoraro
Comment 4 2009-08-12 22:23:51 PDT
Mikhail this is pretty awesome! Heads up on a few other buttons. - delete button in DOMStorageItemsView.js. - delete button in CookieItemsView.js. (just added) The Refresh button has not yet been converted to a glyph, but both of those files have a refresh button as well if you feel they are applicable.
Pavel Feldman
Comment 5 2009-08-12 22:45:47 PDT
> The Refresh button has not yet been converted to a glyph, but both of those > files have a refresh button as well if you feel they are applicable. There is an Images/reloadButtonGlyph.png in place, it is just that .refresh-storage-status-bar-item was not updated to use it. Mikhail, could you add the fix into your patch?
Mikhail Naganov
Comment 6 2009-08-13 02:13:05 PDT
Created attachment 34723 [details] Storage view also converted to use StatusBarButton, fixed Reload button css to support glyph.
Mikhail Naganov
Comment 7 2009-08-13 02:14:00 PDT
Joseph and Pavel, I've addressed your comments.
Mikhail Naganov
Comment 8 2009-08-13 02:21:05 PDT
Created attachment 34724 [details] noticed that I've accidentally made "Delete" button in Cookies view hidden---fixed
Timothy Hatcher
Comment 9 2009-08-13 04:52:53 PDT
Comment on attachment 34724 [details] noticed that I've accidentally made "Delete" button in Cookies view hidden---fixed Nice!
Pavel Feldman
Comment 10 2009-08-13 05:17:25 PDT
Committing to http://svn.webkit.org/repository/webkit/trunk ... M WebCore/ChangeLog M WebCore/WebCore.gypi M WebCore/WebCore.vcproj/WebCore.vcproj M WebCore/inspector/front-end/CookieItemsView.js M WebCore/inspector/front-end/DOMStorageItemsView.js M WebCore/inspector/front-end/ElementsPanel.js M WebCore/inspector/front-end/Panel.js M WebCore/inspector/front-end/ProfileView.js M WebCore/inspector/front-end/ProfilesPanel.js M WebCore/inspector/front-end/ResourcesPanel.js M WebCore/inspector/front-end/ScriptsPanel.js M WebCore/inspector/front-end/WebKit.qrc M WebCore/inspector/front-end/inspector.css M WebCore/inspector/front-end/inspector.html Committed r47192
Note You need to log in before you can comment on or make changes to this bug.