RESOLVED FIXED Bug 205035
Web Inspector: REGRESSION(r251038): Elements: Computed: implicit shorthands are not shown when "Prefer Shorthands" is enabled
https://bugs.webkit.org/show_bug.cgi?id=205035
Summary Web Inspector: REGRESSION(r251038): Elements: Computed: implicit shorthands a...
Nikita Vasilyev
Reported 2019-12-09 16:23:37 PST
Inspect: <body style="font-family: -webkit-system-font, sans-serif; font-size: 75%;"> Computed panel should include `font-family` and `font-size` values. Instead, it only shows: color: rgb(0, 0, 0); display: block; height: 90px; width: 411px;
Attachments
Patch (3.77 KB, patch)
2019-12-09 17:46 PST, Devin Rousso
no flags
Radar WebKit Bug Importer
Comment 1 2019-12-09 16:24:07 PST
Nikita Vasilyev
Comment 2 2019-12-09 16:27:47 PST
Reduction: https://nv.github.io/webkit-inspector-bugs/205035_computed-shortcuts-bug/index.html This regressed in Bug 200554 Web Inspector: Elements: Computed: show shorthand properties in addition to longhand ones
Devin Rousso
Comment 3 2019-12-09 17:46:36 PST
Blaze Burg
Comment 4 2019-12-10 12:12:02 PST
Comment on attachment 385218 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=385218&action=review r=me > Source/WebInspectorUI/ChangeLog:17 > + Drive-by: filter the list of properties to render before sorting them for performance. Does this affect the display order? Is it already being sorted? > Source/WebInspectorUI/UserInterface/Views/ComputedStyleSection.js:170 > + if (!(this._showsShorthandsInsteadOfLonghands && property.isShorthand && hasNonImplicitLonghand(property))) I wish it were possible to fold this into the guard below, but alas, it early exits too early otherwise.
Devin Rousso
Comment 5 2019-12-10 14:05:52 PST
Comment on attachment 385218 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=385218&action=review >> Source/WebInspectorUI/ChangeLog:17 >> + Drive-by: filter the list of properties to render before sorting them for performance. > > Does this affect the display order? Is it already being sorted? No, it was already sorted. What I mean by saying this is rather than sort-then-filter, we filter-then-sort so we don't have to sort as many items :P >> Source/WebInspectorUI/UserInterface/Views/ComputedStyleSection.js:170 >> + if (!(this._showsShorthandsInsteadOfLonghands && property.isShorthand && hasNonImplicitLonghand(property))) > > I wish it were possible to fold this into the guard below, but alas, it early exits too early otherwise. Indeed :(
WebKit Commit Bot
Comment 6 2019-12-10 15:00:55 PST
The commit-queue encountered the following flaky tests while processing attachment 385218 [details]: fetch/fetch-worker-crash.html bug 187257 (author: youennf@gmail.com) The commit-queue is continuing to process your patch.
WebKit Commit Bot
Comment 7 2019-12-10 15:01:54 PST
Comment on attachment 385218 [details] Patch Clearing flags on attachment: 385218 Committed r253348: <https://trac.webkit.org/changeset/253348>
WebKit Commit Bot
Comment 8 2019-12-10 15:01:56 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.