Use media adorner declaratively [devtools/devtools-frontend : main]

0 views
Skip to first unread message

Alex Rudenko (Gerrit)

unread,
Nov 28, 2025, 7:42:34 AMĀ (3 days ago)Ā Nov 28
to Eric Leese, Devtools-frontend LUCI CQ, devtools-rev...@chromium.org
Attention needed from Eric Leese

Alex Rudenko added 1 comment

Patchset-level comments
File-level comment, Patchset 4 (Latest):
Alex Rudenko . resolved

PTAL (it is currently quite verbose but it will be better once I move all adorners and be able to clean up adorner configs and duplicate handlers). Please check if anything looks like it could have regressed the media adorner functionality (I tested manually)

Open in Gerrit

Related details

Attention is currently required from:
  • Eric Leese
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: devtools/devtools-frontend
Gerrit-Branch: main
Gerrit-Change-Id: I4e324367c0b2f1d0a36055b238fb79f6fd0e4bd2
Gerrit-Change-Number: 7204392
Gerrit-PatchSet: 4
Gerrit-Owner: Alex Rudenko <alexr...@chromium.org>
Gerrit-Reviewer: Alex Rudenko <alexr...@chromium.org>
Gerrit-Reviewer: Eric Leese <le...@chromium.org>
Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Attention: Eric Leese <le...@chromium.org>
Gerrit-Comment-Date: Fri, 28 Nov 2025 12:42:30 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Eric Leese (Gerrit)

unread,
Nov 28, 2025, 7:58:27 AMĀ (3 days ago)Ā Nov 28
to Alex Rudenko, Devtools-frontend LUCI CQ, devtools-rev...@chromium.org
Attention needed from Alex Rudenko

Eric Leese voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Alex Rudenko
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: devtools/devtools-frontend
Gerrit-Branch: main
Gerrit-Change-Id: I4e324367c0b2f1d0a36055b238fb79f6fd0e4bd2
Gerrit-Change-Number: 7204392
Gerrit-PatchSet: 4
Gerrit-Owner: Alex Rudenko <alexr...@chromium.org>
Gerrit-Reviewer: Alex Rudenko <alexr...@chromium.org>
Gerrit-Reviewer: Eric Leese <le...@chromium.org>
Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Attention: Alex Rudenko <alexr...@chromium.org>
Gerrit-Comment-Date: Fri, 28 Nov 2025 12:58:22 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Alex Rudenko (Gerrit)

unread,
Nov 28, 2025, 8:45:39 AMĀ (3 days ago)Ā Nov 28
to Eric Leese, Devtools-frontend LUCI CQ, devtools-rev...@chromium.org

Alex Rudenko voted Commit-Queue+2

Commit-Queue+2
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: devtools/devtools-frontend
Gerrit-Branch: main
Gerrit-Change-Id: I4e324367c0b2f1d0a36055b238fb79f6fd0e4bd2
Gerrit-Change-Number: 7204392
Gerrit-PatchSet: 6
Gerrit-Owner: Alex Rudenko <alexr...@chromium.org>
Gerrit-Reviewer: Alex Rudenko <alexr...@chromium.org>
Gerrit-Reviewer: Eric Leese <le...@chromium.org>
Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Comment-Date: Fri, 28 Nov 2025 13:45:34 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Alex Rudenko (Gerrit)

unread,
2:13 AMĀ (11 hours ago)Ā 2:13 AM
to Eric Leese, Devtools-frontend LUCI CQ, devtools-rev...@chromium.org
Gerrit-Comment-Date: Mon, 01 Dec 2025 07:13:20 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Alex Rudenko (Gerrit)

unread,
2:14 AMĀ (11 hours ago)Ā 2:14 AM
to Eric Leese, Devtools-frontend LUCI CQ, devtools-rev...@chromium.org

Alex Rudenko voted Commit-Queue+2

Commit-Queue+2
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: devtools/devtools-frontend
Gerrit-Branch: main
Gerrit-Change-Id: I4e324367c0b2f1d0a36055b238fb79f6fd0e4bd2
Gerrit-Change-Number: 7204392
Gerrit-PatchSet: 7
Gerrit-Owner: Alex Rudenko <alexr...@chromium.org>
Gerrit-Reviewer: Alex Rudenko <alexr...@chromium.org>
Gerrit-Reviewer: Eric Leese <le...@chromium.org>
Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Comment-Date: Mon, 01 Dec 2025 07:14:08 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Devtools-frontend LUCI CQ (Gerrit)

unread,
3:06 AMĀ (10 hours ago)Ā 3:06 AM
to Alex Rudenko, Eric Leese, devtools-rev...@chromium.org

Devtools-frontend LUCI CQ submitted the change with unreviewed changes

Unreviewed changes

4 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:

```
The name of the file: front_end/panels/elements/ElementsTreeElement.ts
Insertions: 12, Deletions: 18.

@@ -404,7 +404,13 @@
input.onAdornerRemoved(adorner);
}
adorner = el as Adorners.Adorner.Adorner;
+
if (adorner) {
+ if (ElementsPanel.instance().isAdornerEnabled(adorner.name)) {
+ adorner.show();
+ } else {
+ adorner.hide();
+ }
input.onAdornerAdded(adorner);
}
});
@@ -727,25 +733,13 @@
{
containerAdornerActive: this.#containerAdornerActive,
adorners: !this.isClosingTag() ? this.#adorners : undefined,
- showAdAdorner:
- ElementsPanel.instance().isAdornerEnabled(ElementsComponents.AdornerManager.RegisteredAdorners.AD) &&
- this.nodeInternal.isAdFrameNode(),
- showContainerAdorner: ElementsPanel.instance().isAdornerEnabled(
- ElementsComponents.AdornerManager.RegisteredAdorners.CONTAINER) &&
- Boolean(this.#layout?.isContainer) && !this.isClosingTag(),
- showFlexAdorner:
- ElementsPanel.instance().isAdornerEnabled(ElementsComponents.AdornerManager.RegisteredAdorners.FLEX) &&
- Boolean(this.#layout?.isFlex) && !this.isClosingTag(),
+ showAdAdorner: this.nodeInternal.isAdFrameNode(),
+ showContainerAdorner: Boolean(this.#layout?.isContainer) && !this.isClosingTag(),
+ showFlexAdorner: Boolean(this.#layout?.isFlex) && !this.isClosingTag(),
flexAdornerActive: this.#flexAdornerActive,
- showGridAdorner:
- ElementsPanel.instance().isAdornerEnabled(ElementsComponents.AdornerManager.RegisteredAdorners.GRID) &&
- Boolean(this.#layout?.isGrid) && !this.isClosingTag(),
- showGridLanesAdorner: ElementsPanel.instance().isAdornerEnabled(
- ElementsComponents.AdornerManager.RegisteredAdorners.GRID_LANES) &&
- Boolean(this.#layout?.isGridLanes) && !this.isClosingTag(),
- showMediaAdorner:
- ElementsPanel.instance().isAdornerEnabled(ElementsComponents.AdornerManager.RegisteredAdorners.MEDIA) &&
- this.node().isMediaNode() && !this.isClosingTag(),
+ showGridAdorner: Boolean(this.#layout?.isGrid) && !this.isClosingTag(),
+ showGridLanesAdorner: Boolean(this.#layout?.isGridLanes) && !this.isClosingTag(),
+ showMediaAdorner: this.node().isMediaNode() && !this.isClosingTag(),
gridAdornerActive: this.#gridAdornerActive,
isSubgrid: Boolean(this.#layout?.isSubgrid),
nodeInfo: this.#nodeInfo,
```

Change information

Commit message:
Use media adorner declaratively

Fixes the issue with show/hide when settings change.
Bug: 407751414
Change-Id: I4e324367c0b2f1d0a36055b238fb79f6fd0e4bd2
Reviewed-by: Eric Leese <le...@chromium.org>
Commit-Queue: Alex Rudenko <alexr...@chromium.org>
Files:
  • M front_end/panels/elements/ElementsTreeElement.ts
Change size: M
Delta: 1 file changed, 50 insertions(+), 75 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Eric Leese
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: devtools/devtools-frontend
Gerrit-Branch: main
Gerrit-Change-Id: I4e324367c0b2f1d0a36055b238fb79f6fd0e4bd2
Gerrit-Change-Number: 7204392
Gerrit-PatchSet: 8
Gerrit-Owner: Alex Rudenko <alexr...@chromium.org>
Gerrit-Reviewer: Alex Rudenko <alexr...@chromium.org>
Gerrit-Reviewer: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Reviewer: Eric Leese <le...@chromium.org>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages