Bug 17221

Summary: Node highlight should show node metrics
Product: WebKit Reporter: Adam Roben (:aroben) <aroben>
Component: Web Inspector (Deprecated)Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Enhancement CC: apavlov, idan
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 17777    
Attachments:
Description Flags
Show content/padding/border/margin boxes for blocks
none
Screenshot of new highlight
none
Firebug's highlight
none
Xyle scope's highlight none

Description Adam Roben (:aroben) 2008-02-08 13:41:02 PST
The node highlight should show the highlighted node's metrics overlaid on top of the node. Firebug uses different colors to show the different boxes. It might be nice to show the actual numbers as well, if we can keep them from obscuring things too much.
Comment 1 Adam Roben (:aroben) 2008-02-08 14:16:18 PST
<rdar://problem/5732822>
Comment 2 Adam Roben (:aroben) 2008-03-20 15:27:13 PDT
Created attachment 19911 [details]
Show content/padding/border/margin boxes for blocks

Here's a patch that changes our node highlight pretty drastically (screenshot coming). We now outline the content/padding/border/margin boxes for blocks. We don't yet show padding/border/margins for inlines.
Comment 3 Adam Roben (:aroben) 2008-03-20 15:28:10 PDT
Created attachment 19912 [details]
Screenshot of new highlight

Here's what the highlight implemented by attachment 19911 [details] looks like. I think we'll want to tweak this a bit more, at least to make the different boxes more distinguishable. Firebug uses some high-contrast colors that get the job done, but are a bit ugly.
Comment 4 Adam Roben (:aroben) 2008-03-20 15:51:16 PDT
Created attachment 19913 [details]
Firebug's highlight

Here's Firebug's highlight, for reference
Comment 5 Timothy Hatcher 2008-03-20 15:56:48 PDT
Created attachment 19914 [details]
Xyle scope's highlight
Comment 6 Adam Roben (:aroben) 2008-03-20 15:59:23 PDT
Comment on attachment 19911 [details]
Show content/padding/border/margin boxes for blocks

Committed in r31189
Comment 7 Adam Roben (:aroben) 2008-04-14 13:15:18 PDT
Reopening as we may want to show numeric metrics in the node highlight as well.
Comment 8 Alexander Pavlov (apavlov) 2011-09-06 07:46:58 PDT
We've had numeric metrics displayed as a tooltip for a while. Bug 37768 patch slightly changed the appearance of the tooltip but it still contains the element renderer's dimensions. Please reopen if you envision something specific that should be implemented.