Bug 234901

Summary: Web Inspector: Layers: add reference page button
Product: WebKit Reporter: Devin Rousso <hi>
Component: Web InspectorAssignee: Devin Rousso <hi>
Status: RESOLVED FIXED    
Severity: Normal CC: ews-watchlist, hi, inspector-bugzilla-changes, pangle, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch
none
[Image] after Patch is applied
none
[fast-cq] Patch none

Description Devin Rousso 2022-01-05 15:06:11 PST
.
Comment 1 Devin Rousso 2022-01-05 15:15:44 PST
Created attachment 448436 [details]
Patch
Comment 2 Devin Rousso 2022-01-05 15:15:56 PST
Created attachment 448437 [details]
[Image] after Patch is applied
Comment 3 Patrick Angle 2022-01-05 16:25:57 PST
Comment on attachment 448436 [details]
Patch

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

r=me

> Source/WebInspectorUI/UserInterface/Views/Layers3DContentView.css:73
> +    bottom: 6px;
> +    inset-inline-end: 6px;

Are these the measurements we want to use for any content view? If so is there any value in using the same rule for both this and the Audits tab so that we are less likely to use different measurements in the future?

> Source/WebInspectorUI/UserInterface/Views/Layers3DContentView.js:180
> +        this.element.appendChild(WI.createReferencePageLink("layers-tab"));

NIT: Can we move this to before the call to `_animate()` with the other `appendChild`? Makes it easier to see what we add to the view IMO.
Comment 4 Devin Rousso 2022-01-05 17:02:43 PST
Comment on attachment 448436 [details]
Patch

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

>> Source/WebInspectorUI/UserInterface/Views/Layers3DContentView.css:73
>> +    inset-inline-end: 6px;
> 
> Are these the measurements we want to use for any content view? If so is there any value in using the same rule for both this and the Audits tab so that we are less likely to use different measurements in the future?

Potentially?  I think it's valid to say we'd wanna keep consistent styling across content views if the reference link is always in the bottom-right corner.  But given that this is only the second usage, I'm inclined to just leave it as-is.  We can unify it later if we desire.

>> Source/WebInspectorUI/UserInterface/Views/Layers3DContentView.js:180
>> +        this.element.appendChild(WI.createReferencePageLink("layers-tab"));
> 
> NIT: Can we move this to before the call to `_animate()` with the other `appendChild`? Makes it easier to see what we add to the view IMO.

ya sure :)
Comment 5 Devin Rousso 2022-01-05 17:04:07 PST
Created attachment 448455 [details]
[fast-cq] Patch
Comment 6 EWS 2022-01-05 18:58:57 PST
Committed r287670 (245767@main): <https://commits.webkit.org/245767@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 448455 [details].
Comment 7 Radar WebKit Bug Importer 2022-01-05 18:59:27 PST
<rdar://problem/87176920>