Skip to content

refactor(composition)!: Delete dead DelegatedInkTrailVisual stub (BC32) - #23677

Merged
Xiaoy312 merged 2 commits into
feature/breakingchangesfrom
dev/xygu/20260707/bc32-delegated-ink-trail-visual
Jul 8, 2026
Merged

Xiaoy312 merged 2 commits into
feature/breakingchangesfrom
dev/xygu/20260707/bc32-delegated-ink-trail-visual

Conversation

@Xiaoy312

@Xiaoy312 Xiaoy312 commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

GitHub Issue: https://github.com/unoplatform/uno-private/issues/2125

PR Type:

🔄 Refactoring (no functional changes, no api changes)

⚠️ Contains a breaking change (refactor!) — removes public API. See the breaking-changes section below.

What changed? 🚀

Implements BC32 from breaking-changes Phase 3 (#8339): deletes the inert public stub Microsoft.UI.Composition.DelegatedInkTrailVisual — a Visual subclass whose only member is a private constructor.

  • Removes src/Uno.UI.Composition/Composition/DelegatedInkTrailVisual.cs in full. The type exposed no public members and there is no Compositor.CreateDelegatedInkTrailVisual factory anywhere, so no app could ever instantiate or use it. A full-repo sweep confirms zero functional consumers.
  • Registers the public-type removal in build/PackageDiffIgnore.xml (6.5 set, matching the baseline used for this branch's breaking-change entries), placed next to the related Windows.UI.Composition.DelegatedInkTrailVisual projection entry.
  • Drops DelegatedInkTrailVisual from the Group 11a "Real Uno impls … preserved on the branch" comment, now that the Microsoft.UI.Composition impl is gone.

No runtime behavior changes. The type was never instantiable (private ctor only, no factory) and had no public surface, so nothing an app could reach is affected — the only observable change is the disappearance of the type name from the public API.

PR Checklist ✅

Breaking changes & migration

  • DelegatedInkTrailVisual (BC32): the public type Microsoft.UI.Composition.DelegatedInkTrailVisual is removed. It was a hollow stub — a Visual subclass with only a private constructor, no public members, and no Compositor factory to create it — so no application could functionally use it. Migration: there is nothing to migrate; no code could have consumed it. The only theoretical impact is binary/source API-compat for code doing typeof(DelegatedInkTrailVisual) or reflecting over the type name, which no real app or library does.

Validation evidence

  • Code review: repo-wide git grep found zero functional consumers of DelegatedInkTrailVisual — after the delete, only the two expected build/PackageDiffIgnore.xml lines remain (the new ignore entry + the unchanged Windows.UI.Composition.* regex); no .cs/.xaml references.
  • Compile: Uno.UI.Composition.Skia (net10.0), the assembly that contained the type, builds clean — 0 warnings, 0 errors. With zero consumers elsewhere, downstream assemblies are unaffected.
  • Not validated locally (CI-gated): the PackageDiff allow-list check runs CI-only (needs generatepkgdiff.exe + a built Uno.WinUI package + the nuget baseline); the new 6.5-set ignore entry is what keeps the removed-type check green. Native heads were not built locally; the change is a pure deletion of an unreferenced cross-target type.

Remove the inert public stub `Microsoft.UI.Composition.DelegatedInkTrailVisual`
— a `Visual` subclass whose only member is a private constructor. It exposes
no public members and there is no `Compositor.CreateDelegatedInkTrailVisual`
factory anywhere, so no app could ever instantiate or use it. A full-repo
sweep confirms zero functional consumers.

Register the public-type removal in build/PackageDiffIgnore.xml (baseVersion
6.5 set, next to the related Windows.UI.Composition projection entry) so CI's
PackageDiff does not flag the removed type, and drop DelegatedInkTrailVisual
from the Group 11a "preserved on the branch" comment now that the
Microsoft.UI.Composition impl is gone.

Part of breaking-changes Phase 3 (BC32).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@github-actions github-actions Bot added the area/build Categorizes an issue or PR as relevant to build infrastructure label Jul 7, 2026
@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 221148 found UI Test snapshots differences: skia-linux-screenshots: 0, skia-windows-screenshots: 75

Details
  • skia-linux-screenshots: 0 changed over 2366

  • skia-windows-screenshots: 75 changed over 2366

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Examples.png
    • ExpanderColorValidationPage.png-dark
    • DisplayInformation.png-dark
    • Focus_FocusVisual_Properties.png-dark
    • Focus_FocusVisual_Properties.png
    • ClipboardTests.png-dark
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • DoubleImageBrushInList.png-dark
    • DoubleImageBrushInList.png
    • Image_AnimatedWebP.png
    • Image_UseTargetSize.png
    • Buttons.png-dark
    • DropDownButtonPage.png-dark
    • ImageBrushInList.png-dark
    • ImageBrushInList.png
    • CalendarView_Theming.png-dark
    • Gamepad_CurrentReading.png-dark

@mergify

mergify Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@Xiaoy312
Xiaoy312 merged commit a522d7c into feature/breakingchanges Jul 8, 2026
68 checks passed
@Xiaoy312
Xiaoy312 deleted the dev/xygu/20260707/bc32-delegated-ink-trail-visual branch July 8, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build Categorizes an issue or PR as relevant to build infrastructure kind/documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants