Bug 193249

Summary: Web Inspector: Event breakpoints: text field and completion popover fonts should match
Product: WebKit Reporter: Nikita Vasilyev <nvasilyev>
Component: Web InspectorAssignee: Devin Rousso <hi>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, hi, inspector-bugzilla-changes, mattbaker, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
[Image] Bug
none
Patch none

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>