Bug 36747

Summary: Web Inspector: Placeholder for styles panel rendering experiments.
Product: WebKit Reporter: Pavel Feldman <pfeldman>
Component: Web Inspector (Deprecated)Assignee: Pavel Feldman <pfeldman>
Status: RESOLVED FIXED    
Severity: Normal CC: bweinstein, cjerdonek, joepeck, rik, simon.fraser, timothy
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
[IMAGE] Firebug-alike version.
none
[IMAGE] Screenshot while running with patch.
none
[IMAGE] Screenshot while running with patch.
none
[IMAGE] Screenshot while running with patch (2)
none
[PATCH] Proposed change.
none
[IMAGE] Web Inspector mockup from Lennart
none
[IMAGE] Screenshot while running with patch (updated).
none
[PATCH] Rebaselined change.
none
[PATCH] Same with binary diff. yurys: review+

Pavel Feldman
Reported 2010-03-29 02:06:30 PDT
I'll be posting screenshots here.
Attachments
[IMAGE] Firebug-alike version. (123.62 KB, image/png)
2010-03-29 02:08 PDT, Pavel Feldman
no flags
[IMAGE] Screenshot while running with patch. (140.62 KB, image/jpeg)
2010-03-29 09:35 PDT, Pavel Feldman
no flags
[IMAGE] Screenshot while running with patch. (133.34 KB, image/png)
2010-03-29 12:44 PDT, Pavel Feldman
no flags
[IMAGE] Screenshot while running with patch (2) (124.51 KB, image/png)
2010-03-29 12:45 PDT, Pavel Feldman
no flags
[PATCH] Proposed change. (24.60 KB, patch)
2010-03-29 12:47 PDT, Pavel Feldman
no flags
[IMAGE] Web Inspector mockup from Lennart (23.78 KB, image/png)
2010-04-18 20:12 PDT, Pavel Feldman
no flags
[IMAGE] Screenshot while running with patch (updated). (110.92 KB, image/png)
2010-05-10 11:52 PDT, Pavel Feldman
no flags
[PATCH] Rebaselined change. (25.69 KB, patch)
2010-05-10 11:54 PDT, Pavel Feldman
no flags
[PATCH] Same with binary diff. (25.80 KB, patch)
2010-05-10 12:56 PDT, Pavel Feldman
yurys: review+
Pavel Feldman
Comment 1 2010-03-29 02:08:29 PDT
Created attachment 51887 [details] [IMAGE] Firebug-alike version. (Computed style is a Styles' sibling below the screen).
Pavel Feldman
Comment 2 2010-03-29 09:35:26 PDT
Created attachment 51923 [details] [IMAGE] Screenshot while running with patch.
Pavel Feldman
Comment 3 2010-03-29 12:44:49 PDT
Created attachment 51948 [details] [IMAGE] Screenshot while running with patch.
Pavel Feldman
Comment 4 2010-03-29 12:45:52 PDT
Created attachment 51949 [details] [IMAGE] Screenshot while running with patch (2)
Pavel Feldman
Comment 5 2010-03-29 12:47:23 PDT
Created attachment 51950 [details] [PATCH] Proposed change.
Pavel Feldman
Comment 6 2010-04-01 13:51:06 PDT
Comment on attachment 51950 [details] [PATCH] Proposed change. We will redesign / land later.
Pavel Feldman
Comment 7 2010-04-18 20:11:24 PDT
I got this via email: Hi, thanks for commenting on my blog post about my Web Inspector wish list. I took a good look at your screenshot from bug #36747, and I really like it, but I'd go even further. I've Photoshopped your patch screenshot and attached it. I realize it is almost a carbon copy of Firebug, but it's with reason. Please follow along: - Moved the big sections to tabs. It makes a lot more sense to me, and they're much easier to find this way. We would however have to come up with a solution for the amount of tabs and the limited space. - Added a bit more spacing everywhere and removed the grey lines between selectors – allows everything to "breathe" a little more. - Removed all underlined links, they are all blue anyway, and this further reduces clutter. - Removed the element styles section, they should go on top of matching rules. I like the Firebug way of only showing them when there are any, and using an option in the contextual menu to add one. - Removed user agent styles, as per my request from https://bugs.webkit.org/show_bug.cgi?id=37766 Combine that with - putting the checkbox to disable/enable styles to the left of the property (https://bugs.webkit.org/show_bug.cgi?id=37770) - remembering split pane positions (https://bugs.webkit.org/show_bug.cgi?id=37767) - a slightly bigger font-size perhaps ... and I'd say it's a worthy competitor to Firebug. :) So, what do you think? Thanks a lot! Lennart
Pavel Feldman
Comment 8 2010-04-18 20:12:45 PDT
Created attachment 53651 [details] [IMAGE] Web Inspector mockup from Lennart
Pavel Feldman
Comment 9 2010-05-10 11:52:27 PDT
Created attachment 55583 [details] [IMAGE] Screenshot while running with patch (updated).
Pavel Feldman
Comment 10 2010-05-10 11:54:49 PDT
Created attachment 55584 [details] [PATCH] Rebaselined change.
Chris Jerdonek
Comment 11 2010-05-10 12:47:38 PDT
(In reply to comment #10) > Created an attachment (id=55584) [details] > [PATCH] Rebaselined change. You need to use the --binary flag with git-diff: http://webkit-commit-queue.appspot.com/results/2214120
Pavel Feldman
Comment 12 2010-05-10 12:56:52 PDT
Created attachment 55594 [details] [PATCH] Same with binary diff. Are you saying CQ is now capable of landing git binary diffs as well? Nice!
Chris Jerdonek
Comment 13 2010-05-10 13:02:20 PDT
(In reply to comment #12) > Created an attachment (id=55594) [details] > [PATCH] Same with binary diff. > > Are you saying CQ is now capable of landing git binary diffs as well? Nice! As of several months ago I think. I wasn't responsible for that addition though -- just the nicer error message. :)
Chris Jerdonek
Comment 14 2010-05-10 13:12:04 PDT
(In reply to comment #12) > Created an attachment (id=55594) [details] > [PATCH] Same with binary diff. > > Are you saying CQ is now capable of landing git binary diffs as well? Nice! Oh, well, you tried. It doesn't completely support it yet: Failed to run "[u'/mnt/git/webkit-style-queue/WebKitTools/Scripts/svn-apply', u'--force']" exit_code: 9 Parsed 6 diffs from patch file(s). patching file LayoutTests/inspector/elements-panel-styles-expected.txt patching file WebCore/ChangeLog Hunk #1 succeeded at 1 with fuzz 3. only literal type is supported now at /mnt/git/webkit-style-queue/WebKitTools/Scripts/svn-apply line 256. https://webkit-commit-queue.appspot.com/results/2166128 It's a FIXME for svn-apply to support git binary diffs having the "delta" format. I'm not sure if there is a way to force the use of "literal".
Joseph Pecoraro
Comment 15 2010-05-10 13:18:09 PDT
> It's a FIXME for svn-apply to support git binary diffs having the "delta" format. > I'm not sure if there is a way to force the use of "literal". A little while ago I asked in #git and looked at the git source code. There currently is no way to force it to use literal. =/
Pavel Feldman
Comment 16 2010-05-10 13:28:02 PDT
> Oh, well, you tried. It doesn't completely support it yet: Heh. That's where I thought we were. That is why I am not cooking binary diffs and land binary-related stuff by hand.
Chris Jerdonek
Comment 17 2010-05-10 13:44:28 PDT
(In reply to comment #16) > > Oh, well, you tried. It doesn't completely support it yet: > > Heh. That's where I thought we were. That is why I am not cooking binary diffs and land binary-related stuff by hand. I filed a bug for this here: https://bugs.webkit.org/show_bug.cgi?id=38864
Yury Semikhatsky
Comment 18 2010-05-11 05:37:29 PDT
Comment on attachment 55594 [details] [PATCH] Same with binary diff. WebCore/inspector/front-end/StylesSidebarPane.js:639 + collapse: function(dontRememberState) Maybe remove this too? The patch looks sane.
Pavel Feldman
Comment 19 2010-05-11 07:15:42 PDT
Committing to http://svn.webkit.org/repository/webkit/trunk ... M LayoutTests/inspector/elements-panel-styles-expected.txt M WebCore/ChangeLog M WebCore/English.lproj/localizedStrings.js M WebCore/inspector/InspectorDOMAgent.cpp M WebCore/inspector/front-end/Checkbox.js M WebCore/inspector/front-end/ElementsPanel.js M WebCore/inspector/front-end/StylesSidebarPane.js M WebCore/inspector/front-end/WorkersSidebarPane.js M WebCore/inspector/front-end/inspector.css M WebCore/inspector/front-end/treeoutline.js Committed r59150
Simon Fraser (smfr)
Comment 20 2010-05-11 16:53:10 PDT
Inspector is no longer showing any computed style for some elements for me now.
Joseph Pecoraro
Comment 21 2010-05-11 19:32:36 PDT
A patch like this could really use more detail in the ChangeLog. If not when it goes into Bugzilla (via an automated tool like webkit-patch) then most certainly before landing!
Note You need to log in before you can comment on or make changes to this bug.