Bug 234901 - Web Inspector: Layers: add reference page button
Summary: Web Inspector: Layers: add reference page button
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: 2022-01-05 15:06 PST by Devin Rousso
Modified: 2022-01-05 18:59 PST (History)
5 users (show)

See Also:


Attachments
Patch (2.09 KB, patch)
2022-01-05 15:15 PST, Devin Rousso
no flags Details | Formatted Diff | Diff
[Image] after Patch is applied (308.16 KB, image/png)
2022-01-05 15:15 PST, Devin Rousso
no flags Details
[fast-cq] Patch (2.04 KB, patch)
2022-01-05 17:04 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 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>