Bug 160856

Summary: Web Inspector: Large class lists are not easily discoverable with "Classes" quick-toggle
Product: WebKit Reporter: Devin Rousso <hi>
Component: Web InspectorAssignee: Devin Rousso <hi>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, commit-queue, joepeck, mattbaker, nvasilyev, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
[Image] Screenshot of issue
none
Patch
joepeck: review+
[Image] After Patch is applied
none
Patch none

Description Devin Rousso 2016-08-15 12:17:52 PDT
Created attachment 286075 [details]
[Image] Screenshot of issue

If an element has a lot of classes, it is hard to see that there are more classes in the "Classes" quick-toggle area
Comment 1 Devin Rousso 2016-08-15 13:18:47 PDT
Created attachment 286083 [details]
Patch
Comment 2 Radar WebKit Bug Importer 2016-08-15 13:19:06 PDT
<rdar://problem/27852460>
Comment 3 Devin Rousso 2016-08-15 13:19:37 PDT
Created attachment 286084 [details]
[Image] After Patch is applied
Comment 4 Joseph Pecoraro 2016-08-15 19:22:38 PDT
Comment on attachment 286083 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=286083&action=review

r=me

> Source/WebInspectorUI/UserInterface/Base/DOMUtilities.js:90
> +WebInspector.linkifyNodeReference = function(node, maxLength = Number.POSITIVE_INFINITY)

We normally just use Infinity instead of Number.POSITIVE_INFINITY.

But how about just keeping it undefined here and doing:

    var displayName = WebInspector.displayNameForNode(node);
    if (maxLength)
        displayName = displayName.truncate(maxLength)
    ...

It reduces the work in the common case (no truncate).
Comment 5 Devin Rousso 2016-08-15 21:46:37 PDT
Created attachment 286149 [details]
Patch
Comment 6 WebKit Commit Bot 2016-08-15 22:15:51 PDT
Comment on attachment 286149 [details]
Patch

Clearing flags on attachment: 286149

Committed r204496: <http://trac.webkit.org/changeset/204496>
Comment 7 WebKit Commit Bot 2016-08-15 22:15:58 PDT
All reviewed patches have been landed.  Closing bug.