Bug 193249 - Web Inspector: Event breakpoints: text field and completion popover fonts should match
Summary: Web Inspector: Event breakpoints: text field and completion popover fonts sho...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Devin Rousso
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-01-08 12:23 PST by Nikita Vasilyev
Modified: 2019-01-14 14:53 PST (History)
5 users (show)

See Also:


Attachments
[Image] Bug (40.03 KB, image/png)
2019-01-08 12:23 PST, Nikita Vasilyev
no flags Details
Patch (4.52 KB, patch)
2019-01-08 13:22 PST, Devin Rousso
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Vasilyev 2019-01-08 12:23:32 PST
Created attachment 358620 [details]
[Image] Bug

font-family and font-size should match. I suggest using "Menlo, monospace" as we always do for editable code.

The completion popover text should be directly under the text field text — not shifted a few pixels on the left.
Comment 1 Devin Rousso 2019-01-08 13:22:37 PST
Created attachment 358628 [details]
Patch
Comment 2 Nikita Vasilyev 2019-01-08 14:27:22 PST
Comment on attachment 358628 [details]
Patch

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

Works as expected. I'd r+.

> Source/WebInspectorUI/UserInterface/Views/EventBreakpointPopover.css:42
> +    font-family: system-ui;

Interesting, we've never used "system-ui" before.

I had to look it up when we added this: https://bugs.webkit.org/show_bug.cgi?id=151493. It seems like we can replace "-webkit-system-font" with "system-ui" everywhere.

> Source/WebInspectorUI/UserInterface/Views/EventBreakpointPopover.js:199
> +        rect.size.width -= padding + parseInt(computedStyle.borderRightWidth) + parseInt(computedStyle.paddingRight);

`rect.size.width` doesn't seem to be used by this._suggestionsView.show.
Comment 3 Matt Baker 2019-01-14 14:26:53 PST
Comment on attachment 358628 [details]
Patch

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

r=me

>> Source/WebInspectorUI/UserInterface/Views/EventBreakpointPopover.js:199
>> +        rect.size.width -= padding + parseInt(computedStyle.borderRightWidth) + parseInt(computedStyle.paddingRight);
> 
> `rect.size.width` doesn't seem to be used by this._suggestionsView.show.

This is an implementation detail; we could change the signature if we really wanted:

show(anchorOrigin, anchorHeight) or just show(origin, anchorHeight)
Comment 4 WebKit Commit Bot 2019-01-14 14:52:37 PST
Comment on attachment 358628 [details]
Patch

Clearing flags on attachment: 358628

Committed r239953: <https://trac.webkit.org/changeset/239953>
Comment 5 WebKit Commit Bot 2019-01-14 14:52:39 PST
All reviewed patches have been landed.  Closing bug.
Comment 6 Radar WebKit Bug Importer 2019-01-14 14:53:42 PST
<rdar://problem/47266828>